Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
wilson-apps/wilson-basic/shiny-server.conf.j2
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
29 lines (22 sloc)
856 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define the user we should use when spawning R Shiny processes | |
run_as shiny; | |
# Preserve logging, although the main process exits with status 0 | |
preserve_logs true; | |
# Enable detailed error messages for users | |
sanitize_errors off; | |
# Define a top-level server which will listen on a port | |
server { | |
# Instruct this server to listen on port 3838 | |
listen 3838; | |
# Define the location available at the base URL | |
location {{ "WILSON_LOCATION"|env("/") }} { | |
# Run this location in 'site_dir' mode, which hosts the entire directory | |
# tree at '/srv/shiny-server' | |
site_dir /srv/shiny-server; | |
# Define where we should put the log files for this location | |
log_dir /var/log/shiny-server; | |
# Should we list the contents of a (non-Shiny-App) directory when the user | |
# visits the corresponding URL? | |
directory_index on; | |
} | |
} |