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

@@ -1,12 +1,18 @@
# Container settings
traefik_name: traefik
traefik_dashboard: false
traefik_root: "/opt/{{ traefik_name }}"
traefik_standalone: true
traefik_http_only: false
traefik_debug: false
traefik_web_entry: "80:80"
traefik_websecure_entry: "443:443"
traefik_localonly: "10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.0/8"
# HTTPS settings
traefik_production: false
traefik_hsts_enable: false
traefik_hsts_preload: false
traefik_hsts_seconds: 0
traefik_http_redirect: false
traefik_ports:
- "80:80"
- "443:443"
traefik_http_redirect: true
# Host settings
traefik_root: "{{ docker_compose_root }}/{{ traefik_name }}"