I'm configuring a shiny server. I want the server to serve only a single application & am not interested in an index page. I also want my application load balancer to obtain responses to health checks from the server.
If I setup the server like this; then I will receive OK to the health checks but I have to add /my-app-path
to the URL to reach the app:
server {
listen 3838;
location / {
site_dir /srv/shiny-server;
log_dir /var/log/shiny-server;
directory_index off;
}
}
If I setup in the following way, I don't need to add my app-name to the end of the URL to reach the application; however, the health checks fail:
server {
listen 3838;
location / {
app_dir /srv/shiny-server/my-app-path;
log_dir /var/log/shiny-server;
directory_index off;
}
}
Is there a way to achieve both goals? For some reason it seems that either changing site_dir
to app_dir
or adding the directory name for the app after app_dir /srv/shiny-server/
causes the ping
to no longer work.