Skip to content

Commit

Permalink
basic configure of nginx and shiny-server
Browse files Browse the repository at this point in the history
  • Loading branch information
duocang committed Mar 3, 2024
1 parent 99cdcbe commit 6d6db14
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/configure/nginx_pmet
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# /etc/nginx/sites-available/pmet_result
server {
listen 127.0.0.1:84;
server_name 127.0.0.1;
access_log /var/log/nginx/localhost.access.log;
location /result {
alias /home/shiny/pmet/result;
}
}
5 changes: 5 additions & 0 deletions data/configure/rstudio_server_rserver.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# /etc/rstudio/rserver.conf

# Server Configuration File
www-address=127.0.0.1
www-port=7878
24 changes: 24 additions & 0 deletions data/configure/shiny-server.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# /etc/shiny-server/shiny-server.conf

# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;

# Define a server that listens on port 3838
server {
listen 4949 127.0.0.1;
# listen 3838;

# Define a location at the base URL
location / {
app_idle_timeout 0;
# Host the directory of Shiny Apps stored in this directory
site_dir /srv/shiny-server;

# Log all Shiny output to files in this directory
log_dir /var/log/shiny-server;

# When a user visits the base URL rather than a particular application,
# an index of the applications available in this directory will be shown.
directory_index on;
}
}

0 comments on commit 6d6db14

Please sign in to comment.