I am setting up a Shiny server with multiple applications hosted on the same server. I would like to setup different server entries similar to Apache or Nginx. From the Administrator's Guide and the code, I'm not sure that this can be accomplished. Any additional insights or help would be appreciated.
Existing Configuration
Consider the following configuration file located at /etc/shiny-server/shiny-server.conf
.
run_as shiny;
server {
listen 3838;
location / {
site_dir /services/shiny/root;
log_dir /services/shiny/root/logs;
directory_index off;
}
}
server {
listen 3839;
location / {
site_dir /services/shiny/test-dashboard;
log_dir /services/shiny/test-dashboard/logs;
directory_index off;
}
}
Desired Configuration
I would like to accomplish the following configuration structure:
- /etc
- shiny-server/
- shiny-server.conf
- conf.d/
- test-dashboard.conf
- root-dashboard.conf
- shiny-server/
Where test-dashboard.conf
and root-dashboard.conf
contain the server entries listed above.