Add api endpoint toggle variable to caddy role
This commit is contained in:
parent
3192618319
commit
4b947a3112
2 changed files with 4 additions and 0 deletions
|
|
@ -4,6 +4,7 @@ caddy_version: alpine
|
||||||
caddy_caddyfile_dir: "{{ docker_stack_files_dir }}/caddy"
|
caddy_caddyfile_dir: "{{ docker_stack_files_dir }}/caddy"
|
||||||
|
|
||||||
caddy_use_debug: no
|
caddy_use_debug: no
|
||||||
|
caddy_use_api: yes # if no turns off api interface; it is *required* for other swarm roles to be routed
|
||||||
|
|
||||||
caddy_use_https: yes
|
caddy_use_https: yes
|
||||||
caddy_tls_use_staging: no
|
caddy_tls_use_staging: no
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,9 @@
|
||||||
{% if caddy_use_debug is sameas true %}
|
{% if caddy_use_debug is sameas true %}
|
||||||
debug
|
debug
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if caddy_use_api is sameas false %}
|
||||||
|
admin off
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if caddy_use_https is sameas false %}
|
{% if caddy_use_https is sameas false %}
|
||||||
auto_https off
|
auto_https off
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue