Spaces:
Runtime error
Runtime error
# Instruct Shiny Server to run applications as the user "shiny" | |
run_as user; | |
#preserve_logs true; | |
#sanitize_errors false; | |
template_dir /etc/shiny-server/templates; | |
# 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 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; | |
location /persistent-data-storage { | |
utilization_scheduler 5 .9 7; | |
} | |
location /mimic-google-form { | |
utilization_scheduler 10 .9 5; | |
} | |
location /authtest { | |
required_user *; | |
} | |
location /ibis { | |
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; | |
} |