Refactor Traefik deploy: docker-compose + systemd

- Replace docker_container ansible with new setup
- Add option to disable HTTPS for alternate reverse proxy use
This commit is contained in:
2023-04-21 03:04:53 -04:00
parent c67a39982e
commit 9512212b84
8 changed files with 75 additions and 49 deletions

View File

@@ -10,7 +10,7 @@ providers:
entrypoints:
web:
address: ':80'
{% if traefik_http_redirect is defined and traefik_http_redirect %}
{% if traefik_http_redirect is defined and traefik_http_redirect and not traefik_http_only %}
http:
redirections:
entrypoint:
@@ -18,10 +18,12 @@ entrypoints:
scheme: https
permanent: true
{% endif %}
{% if not traefik_http_only is defined or not traefik_http_only %}
websecure:
address: ':443'
http:
tls: {}
{% endif %}
{% if traefik_acme_email is defined %}
certificatesResolvers: