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 }}