Add a networking option when the backend is docker swarm.

This commit is contained in:
Andrea Dell'Amico 2024-04-09 14:30:14 +02:00
parent 5d9f954b24
commit 52b516579a
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 9 additions and 7 deletions

View File

@ -12,6 +12,15 @@ server:
frame-options: {{ shinyproxy_server_frame_options }}
proxy:
{% if shinyproxy_container_backend == 'docker-swarm' %}
bind-address: 0.0.0.0
docker:
internal-networking: true
{% else %}
bind-address: {{ shinyproxy_bind_address }}
{% endif %}
port: {{ shinyproxy_http_port }}
hide-navbar: {{ shinyproxy_hide_navbar }}
title: {{ shinyproxy_app_title }}
logo-url: {{ shinyproxy_logo_url }}
landing-page: {{ shinyproxy_landing_page }}
@ -27,13 +36,6 @@ proxy:
default-proxy-max-lifetime: {{ shinyproxy_default_proxy_max_lifetime }}
same-site-cookie: {{ shinyproxy_same_site_cookie }}
{% endif %}
{% if shinyproxy_container_backend == 'docker-swarm' %}
bind-address: 0.0.0.0
{% else %}
bind-address: {{ shinyproxy_bind_address }}
{% endif %}
port: {{ shinyproxy_http_port }}
hide-navbar: {{ shinyproxy_hide_navbar }}
{% if shinyproxy_custom_template %}
template-path: {{ shinyproxy_template_path }}
{% endif %}