Skip to content

Commit fba2890

Browse files
committed
shiny-server.conf added.
1 parent 04fc002 commit fba2890

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

shiny-server.conf

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Instruct Shiny Server to run applications as the user "shiny"
2+
run_as shiny;
3+
http_keepalive_timeout 600;
4+
preserve_logs true;
5+
6+
# Define a server that listens on port 3838
7+
server {
8+
listen 3838;
9+
10+
# Define a location at the base URL
11+
location / {
12+
13+
# Host the directory of Shiny Apps stored in this directory
14+
site_dir /srv/shiny-server;
15+
16+
# Log all Shiny output to files in this directory
17+
log_dir /var/log/shiny-server;
18+
19+
# When a user visits the base URL rather than a particular application,
20+
# an index of the applications available in this directory will be shown.
21+
directory_index on;
22+
disable_websockets off;
23+
app_init_timeout 1800;
24+
app_idle_timeout 1800;
25+
}
26+
}

0 commit comments

Comments
 (0)