Traefik cleanup and switch to yaml
This commit is contained in:
parent
53e06baaad
commit
5fc635cbb5
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -3,6 +3,7 @@ http:
|
||||
api:
|
||||
rule: "Host(`traefik.jafner.net`)"
|
||||
entryPoints: "websecure"
|
||||
middlewares: authentik@file
|
||||
service: "api@internal"
|
||||
tls:
|
||||
certResolver: "lets-encrypt"
|
@ -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:
|
||||
|
@ -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"
|
30
server/config/traefik/traefik.yaml
Normal file
30
server/config/traefik/traefik.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user