我在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;
}
}
~
我已經添加了示例繞過 –