-
Notifications
You must be signed in to change notification settings - Fork 21
/
shiny-server.conf
33 lines (25 loc) · 1 KB
/
shiny-server.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
# enable local app configurations using a file named .shiny_app.conf.
# This file can be placed within an application directory (alongside the server.R and ui.R files)
allow_app_override true;
# Default time to keep http requests open is 45 seconds.
# Increase this for long connections with schematic.
http_keepalive_timeout 180;
# Define a server that listens on port 3838
server {
listen 3838;
# Define a location at the base URL
location / {
# Directory in which to find the single application
# hosted by this server
app_dir /srv/shiny-server/app;
# 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 NOT be shown.
directory_index off;
# Don't automatically reap user's session upon disconnect
reconnect false;
}
}