Support more configuration options.
This commit is contained in:
parent
ac7a5ae5f9
commit
595b33d30d
|
@ -117,6 +117,8 @@ proxy:
|
||||||
display-name: {{ app.display_name }}
|
display-name: {{ app.display_name }}
|
||||||
description: {{ app.description }}
|
description: {{ app.description }}
|
||||||
{% if app.cmd is defined %}container-cmd: ["R", "-e {{ app.cmd }}"]{% endif %}
|
{% if app.cmd is defined %}container-cmd: ["R", "-e {{ app.cmd }}"]{% endif %}
|
||||||
|
|
||||||
|
{% if app.full_cmd is defined %}container-cmd: ["{{ app.full_cmd }}"]{% endif %}
|
||||||
|
|
||||||
container-image: {{ app.docker_image }}
|
container-image: {{ app.docker_image }}
|
||||||
container-privileged: {{ app.container_privileged | default('false') }}
|
container-privileged: {{ app.container_privileged | default('false') }}
|
||||||
|
@ -131,6 +133,12 @@ proxy:
|
||||||
stop-on-logout: {{ app.stop_on_logout | default('true') }}
|
stop-on-logout: {{ app.stop_on_logout | default('true') }}
|
||||||
max-lifetime: {{ app.max_lifetime | default(shinyproxy_default_proxy_max_lifetime) }}
|
max-lifetime: {{ app.max_lifetime | default(shinyproxy_default_proxy_max_lifetime) }}
|
||||||
|
|
||||||
|
{% if app.extra_options is defined %}
|
||||||
|
{% for opt in app.extra_options %}
|
||||||
|
{{ opt.key }}: {{ opt.value }}
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if app.environment is defined %}
|
{% if app.environment is defined %}
|
||||||
|
@ -140,6 +148,16 @@ proxy:
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if app.groups is defined %}
|
||||||
|
|
||||||
|
access-groups: [{{ app.groups }}]
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if app.port is defined %}port: {{ app.port }}{% endif %}
|
||||||
|
|
||||||
|
{% if app.container_volumes is defined %}container-volumes: [ {% for vol in app.container_volumes %} "{{ vol }}"{% if not loop.last %}, {% endif %}{% endfor %} ]{% endif %}
|
||||||
|
|
||||||
{% if shinyproxy_as_docker_service %}
|
{% if shinyproxy_as_docker_service %}
|
||||||
{% if shinyproxy_container_backend == 'docker-swarm' %}
|
{% if shinyproxy_container_backend == 'docker-swarm' %}
|
||||||
|
|
||||||
|
@ -151,15 +169,6 @@ proxy:
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if app.groups is defined %}
|
|
||||||
|
|
||||||
access-groups: [{{ app.groups }}]
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if app.port is defined %}port: {{ app.port }}{% endif %}
|
|
||||||
|
|
||||||
{% if app.container_volumes is defined %}container-volumes: [ {% for vol in app.container_volumes %} "{{ vol }}"{% if not loop.last %}, {% endif %}{% endfor %} ]{% endif %}
|
|
||||||
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue