Skip to content

Instantly share code, notes, and snippets.

@vasantm
Created June 6, 2017 18:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save vasantm/43a94acd7b9fcf573cdea2a200218425 to your computer and use it in GitHub Desktop.
Save vasantm/43a94acd7b9fcf573cdea2a200218425 to your computer and use it in GitHub Desktop.
shiny server configuration file
# 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 / {
# Host the directory of Shiny Apps stored in this directory
site_dir /srv/shiny-server;
# 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;
# sanitize errors? from :https://groups.google.com/forum/#!topic/shiny-discuss/9VTc0B4Yo4Q
sanitize_errors false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment