I posted this as an issue on GitHub (https://github.com/rstudio/shiny-server/issues/407) but am cross-posting here because there has been no activity there.
I have a shiny app that creates reports, some of which may take a few minutes to complete. I am currently running into problems with the downloads failing after 60 seconds on a CentOS 7 machine running shiny server v1.5.12. I have updated shiny-server.conf
to have longer timeouts, and the only parameter I have been able to find with a default timeout of 60 seconds is app_init_timeout
, which is not the problem here.
This is what I currently have for /etc/shiny-server/shiny-server.conf
:
# Instruct Shiny Server to run applications as the user "shiny"
run_as :HOME_USER: shiny;
# Set keepalive connection time to 60 minutes
http_keepalive_timeout 3600;
# Define a server that listens on port 3838
server {
listen 3838;
location /users {
user_dirs;
# Set application idle time limit to one hour
app_idle_timeout 3600;
}
# Define a location at the base URL
location /apps {
# 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;
# Set application idle time limit to one hour
app_idle_timeout 3600;
}
}
It's as if the http_keepalive_timeout
is being completed ignored.