Skip to content

Instantly share code, notes, and snippets.

@johandahlberg
Created March 27, 2014 17:48
Show Gist options
  • Save johandahlberg/9813703 to your computer and use it in GitHub Desktop.
Save johandahlberg/9813703 to your computer and use it in GitHub Desktop.
My Shiny Server conf
# Instruct Shiny Server to run applications as the user "shiny"
run_as shiny;
# Define a server that listens on port 3838
server {
listen 3838;
# 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;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment