Linux サーバーに光沢のあるアプリをデプロイしています。1 分間アクティビティがない場合、アプリをタイムアウトさせたい。私が読んだ内容に基づいて、app_idle_timeout 行を Shiny-server.conf ファイルに追加しましたが、機能しないことに気付きました。セッションが 1 分後に確実にタイムアウトするようにする方法を教えてください。注: 私は光沢のあるサーバー 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;
}
}
~