From 82995764a79e115e495e71b1ea6a961ae7cceaba Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 14 Nov 2024 15:31:25 -0500 Subject: Batman --- configs/traefik/certs/.gitignore | 2 ++ configs/traefik/static-cfg.yaml | 14 ++++++++++++++ configs/traefik/traefik.yaml | 39 +++++++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 configs/traefik/certs/.gitignore create mode 100644 configs/traefik/static-cfg.yaml create mode 100644 configs/traefik/traefik.yaml (limited to 'configs/traefik') diff --git a/configs/traefik/certs/.gitignore b/configs/traefik/certs/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/configs/traefik/certs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/configs/traefik/static-cfg.yaml b/configs/traefik/static-cfg.yaml new file mode 100644 index 0000000..91ecb03 --- /dev/null +++ b/configs/traefik/static-cfg.yaml @@ -0,0 +1,14 @@ +http: + routers: + plex: + rule: Host(`plex.{{ env "DOMAIN" }}`) + service: plex + tls: + certResolver: cloudflare + entryPoints: + - websecure + services: + plex: + loadBalancer: + servers: + - url: 'http://host.docker.internal:32400' diff --git a/configs/traefik/traefik.yaml b/configs/traefik/traefik.yaml new file mode 100644 index 0000000..25af4dc --- /dev/null +++ b/configs/traefik/traefik.yaml @@ -0,0 +1,39 @@ +global: + checkNewVersion: false + sendAnonymousUsage: false + +log: + level: DEBUG + +api: + dashboard: true + insecure: true + +entryPoints: + web: + address: :80 + websecure: + address: :443 + asDefault: true + +certificatesResolvers: + cloudflare: + acme: + email: benjamin@chausse.xyz + storage: /var/traefik/certs/cloudflare-acme.json + caServer: 'https://acme-v02.api.letsencrypt.org/directory' + keyType: EC256 + dnsChallenge: + provider: cloudflare + resolvers: + - "1.1.1.1:53" + - "8.8.8.8:53" + +providers: + file: + filename: /etc/traefik/static-cfg.yaml + + docker: + endpoint: "unix:///var/run/docker.sock" + allowEmptyServices: true + exposedByDefault: false -- cgit v1.2.3