Move caddy API access to internal variables

Moved the ability to switch off caddy's api access to variables not
intended to be overwritten. It still can, but it is much more difficult.
Since every docker deployment relies on caddy's api to be accessible it
seems weird to present an easily reachable option to turn it off
globally.
This commit is contained in:
Marty Oehme 2021-10-21 14:25:51 +02:00
parent 30089b434e
commit 7eeeec0489
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 2 additions and 1 deletions

View file

@ -4,7 +4,6 @@ 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

@ -6,3 +6,5 @@ caddy_stack:
caddy_http_server_name: httpserve
caddy_https_server_name: httpsserve
caddy_use_api: yes # if no turns off api interface; it is *required* for other swarm roles to be routed