Traefik cleanup and switch to yaml

This commit is contained in:
Joey Hafner 2022-07-09 00:44:40 -07:00
parent 53e06baaad
commit 5fc635cbb5
6 changed files with 32 additions and 711 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,7 @@ http:
api:
rule: "Host(`traefik.jafner.net`)"
entryPoints: "websecure"
middlewares: authentik@file
service: "api@internal"
tls:
certResolver: "lets-encrypt"

View File

@ -13,12 +13,9 @@ services:
- 28080:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./traefik.toml:/traefik.toml
- ./traefik.yaml:/traefik.yaml
- ./config:/config
- $DOCKER_DATA/acme.json:/acme.json
- ./.htpasswd:/.htpasswd
labels:
- traefik.http.routers.traefik.middlewares=authentik@file
networks:
web:

View File

@ -1,27 +0,0 @@
[entryPoints]
[entryPoints.web]
address = ":80"
[entryPoints.web.http.redirections.entryPoint]
to = "websecure"
scheme = "https"
[entryPoints.websecure]
address = ":443"
[metrics]
[metrics.prometheus]
[certificatesResolvers.lets-encrypt.acme]
email = "jafner425@gmail.com"
storage = "acme.json"
[certificatesResolvers.lets-encrypt.acme.tlsChallenge]
[api]
insecure = true
dashboard = true
[providers.docker]
watch = true
network = "web"
[providers.file]
directory = "/config"

View File

@ -0,0 +1,30 @@
entryPoints:
web:
address: :80
redirections:
entryPoint:
to: websecure
scheme: https
websecure:
address: :443
metrics:
prometheus: {}
certificatesResolvers:
lets-encrypt:
acme:
email: jafner425@gmail.com
storage: acme.json
tlsChallenge: {}
api:
insecure: true
dashboard: true
providers:
docker:
watch: true
network: web
file:
directory: /config