diff options
Diffstat (limited to 'configs/traefik')
-rw-r--r-- | configs/traefik/certs/.gitignore | 2 | ||||
-rw-r--r-- | configs/traefik/static-cfg.yaml | 14 | ||||
-rw-r--r-- | configs/traefik/traefik.yaml | 39 |
3 files changed, 55 insertions, 0 deletions
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 |