我在 Linux 服务器上部署了一个闪亮的应用程序。如果一分钟内没有活动,我希望应用程序超时。根据我阅读的内容,我将 app_idle_timeout 行添加到了 shiny-server.conf 文件中,但我注意到它不起作用。有人可以建议我如何确保会话在一分钟后超时?注意:我没有闪亮的服务器 PRO。
下面是我的 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;
app_idle_timeout 60;
# 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;
}
}
~