forked from daattali/shiny-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshiny-server.conf
50 lines (40 loc) · 1.43 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
# Define a server that listens on port 3838
server {
listen 3838 127.0.0.1;
# 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 600;
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;
location /persistent-data-storage {
utilization_scheduler 5 .9 7;
}
location /mimic-google-form {
utilization_scheduler 10 .9 5;
}
location /authtest {
required_user *;
}
}
}
# 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;
}