From 6cd31aad29fccb53e15fb309579c367a3de453a2 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 16 Nov 2020 17:25:40 +0100 Subject: [PATCH] The heartbeat values are now variables --- defaults/main.yml | 2 ++ templates/shinyproxy-2-conf.yml.j2 | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 69b3e87..00a63fc 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -15,6 +15,8 @@ shinyproxy_install_dir: /opt/shinyproxy shinyproxy_log_dir: /var/log/shinyproxy shinyproxy_bind_address: 127.0.0.1 shinyproxy_http_port: 8080 +shinyproxy_heartbeat_rate: 10000 +shinyproxy_heartbeat_timeout: 60000 # For logrotate. In days shinyproxy_log_retention: 10 shinyproxy_default_apps: True diff --git a/templates/shinyproxy-2-conf.yml.j2 b/templates/shinyproxy-2-conf.yml.j2 index be6134f..07f3236 100644 --- a/templates/shinyproxy-2-conf.yml.j2 +++ b/templates/shinyproxy-2-conf.yml.j2 @@ -2,8 +2,8 @@ proxy: title: {{ shinyproxy_app_title }} logo-url: {{ shinyproxy_logo_url }} landing-page: {{ shinyproxy_landing_page }} - heartbeat-rate: 10000 - heartbeat-timeout: 60000 + heartbeat-rate: {{ shinyproxy_heartbeat_rate }} + heartbeat-timeout: {{ shinyproxy_heartbeat_timeout }} container-wait-time: {{ shinyproxy_container_wait_time }} {% if shinyproxy_container_backend == 'docker-swarm' %} bind-address: 0.0.0.0