Add api endpoint toggle variable to caddy role

This commit is contained in:
Marty Oehme 2021-07-29 16:47:13 +02:00
parent 3192618319
commit 4b947a3112
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 4 additions and 0 deletions

View file

@ -4,6 +4,7 @@ caddy_version: alpine
caddy_caddyfile_dir: "{{ docker_stack_files_dir }}/caddy"
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_tls_use_staging: no

View file

@ -10,6 +10,9 @@
{% if caddy_use_debug is sameas true %}
debug
{% endif %}
{% if caddy_use_api is sameas false %}
admin off
{% endif %}
{% if caddy_use_https is sameas false %}
auto_https off