From c55433e08199c7a503097467c696db74882d4439 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 7 Oct 2020 19:29:44 +0200 Subject: [PATCH] Do not bind on localhost when running as a stack --- templates/shinyproxy-2-conf.yml.j2 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/shinyproxy-2-conf.yml.j2 b/templates/shinyproxy-2-conf.yml.j2 index ae3420d..a0e8d60 100644 --- a/templates/shinyproxy-2-conf.yml.j2 +++ b/templates/shinyproxy-2-conf.yml.j2 @@ -5,8 +5,12 @@ proxy: heartbeat-rate: 10000 heartbeat-timeout: 60000 container-wait-time: {{ shinyproxy_container_wait_time }} +{% if shinyproxy_container_backend == 'docker-swarm' %} + bind-address: 0.0.0.0 +{% else %} bind-address: {{ shinyproxy_bind_address }} - port: {{ shinyproxy_http_port }} +{% endif %} +port: {{ shinyproxy_http_port }} hide-navbar: {{ shinyproxy_hide_navbar }} {% if shinyproxy_custom_template %} template-path: {{ shinyproxy_template_path }}