-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathshiny-customized.config
executable file
·46 lines (35 loc) · 1.38 KB
/
shiny-customized.config
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
34
35
36
37
38
39
40
41
42
43
44
45
46
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
# disable idle timeout to retain connection
app_idle_timeout 0;
# shift application timeout from default (60 seconds) to 10 minutes (600 sec)
app_init_timeout 600;
# Define a server that listens on port 3838
server {
listen 3838;
# Define a location at the base URL
location / {
# Only up tp 20 connections per Shiny process and at most 3 Shiny processes
# per application. Proactively spawn a new process when our processes reach
# 90% capacity.
utilization_scheduler 20 .9 3;
# Host the directory of Shiny Apps stored in this directory
site_dir /srv/shiny-server;
# if a user is idle for x seconds (no interaction with server),
# disconnect them from the server
app_session_timeout 900;
# google_analytics_id "UA-59820529-4";
# 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;
}
}
# # Setup a flat-file authentication system. {.pro}
# auth_passwd_file /etc/shiny-server/passwd;
# # Define a default admin interface to be run on port 4151. {.pro}
# admin 4151 {
# # Only permit the user named `admin` to access the admin interface.
# required_user admin;
# }