From 37629031467fd642672735c673372fe41d4e6900 Mon Sep 17 00:00:00 2001 From: Alpha Chen Date: Thu, 6 Jan 2022 12:54:22 -0800 Subject: [PATCH] [meta] traefik shenanigans - switch to YAML for the main config - pin to a version so I don't accidentally screw it up --- meta/on-fire-within/main.yml | 44 +++++++++++++++++++----------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/meta/on-fire-within/main.yml b/meta/on-fire-within/main.yml index 551ba8a..957d731 100644 --- a/meta/on-fire-within/main.yml +++ b/meta/on-fire-within/main.yml @@ -69,31 +69,33 @@ - name: Traefik static configuration copy: content: | - [providers] - [providers.docker] - exposedByDefault = false - [providers.file] - filename = "/etc/traefik/dynamic_conf.toml" - watch = true + providers: + docker: + exposedByDefault: false + file: + filename: /etc/traefik/dynamic_conf.toml + watch: true - [entryPoints] - [entryPoints.http] - address = ":80" + entryPoints: + http: + address: ":80" - [entryPoints.https] - address = ":443" + https: + address: ":443" - [certificatesResolvers.le.acme] - email = "{{ email }}" - storage = "/etc/traefik/acme.json" - [certificatesResolvers.le.acme.httpChallenge] - entryPoint = "http" + certificatesResolvers: + le: + acme: + email: {{ email }} + storage: "/etc/traefik/acme.json" + httpChallenge: + entryPoint: http - [api] - insecure = true + api: + insecure: true - [accessLog] - dest: /etc/traefik/traefik.toml + accessLog: {} + dest: /etc/traefik/traefik.yml mode: 0600 # https://docs.syncthing.net/users/faq.html#inotify-limits @@ -206,7 +208,7 @@ - traefik.http.routers.syncthing.tls.certresolver=le - traefik.http.services.syncthing.loadbalancer.server.port=8384 traefik: - image: traefik:latest + image: traefik:v2.5 container_name: traefik ports: - 80:80