-
Notifications
You must be signed in to change notification settings - Fork 2
/
shiny-server.conf
32 lines (24 loc) · 936 Bytes
/
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
# Define the user we should use when spawning R Shiny processes
run_as shiny;
# disable websocket
disable_protocols websocket;
# disable idle timeout to retain connection
app_idle_timeout 0;
# Define a top-level server which will listen on a port
server {
# Instruct this server to listen on port 80. The app at dokku-alt need expose PORT 80, or 500 e etc. See the docs
listen 80;
# Define the location available at the base URL
location / {
# Run this location in 'site_dir' mode, which hosts the entire directory
# tree at '/srv/shiny-server'
site_dir /srv/shiny-server/LOLAweb/apps/LOLAweb;
# Define where we should put the log files for this location
log_dir /var/log/shiny-server;
# Should we list the contents of a (non-Shiny-App) directory when the user
# visits the corresponding URL?
directory_index on;
# analytics
google_analytics_id UA-112017665-2;
}
}