feat: init
This commit is contained in:
5
config/traefik/dynamic/dashboard.yaml
Normal file
5
config/traefik/dynamic/dashboard.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
http:
|
||||
routers:
|
||||
api:
|
||||
service: api@internal
|
||||
rule: "Host(`traefik.vm`)"
|
16
config/traefik/dynamic/ssl.yaml
Normal file
16
config/traefik/dynamic/ssl.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
http:
|
||||
middlewares:
|
||||
redirect-https:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: false
|
||||
|
||||
routers:
|
||||
https-router:
|
||||
rule: "!Host(`localhost`)"
|
||||
priority: 999999
|
||||
middlewares:
|
||||
- redirect-https
|
||||
service: noop@internal
|
||||
entrypoints:
|
||||
- http
|
37
config/traefik/traefik.yml
Normal file
37
config/traefik/traefik.yml
Normal file
@ -0,0 +1,37 @@
|
||||
log:
|
||||
level: INFO
|
||||
|
||||
api:
|
||||
dashboard: true
|
||||
disableDashboardAd: true
|
||||
|
||||
entryPoints:
|
||||
http:
|
||||
address: :80
|
||||
|
||||
https:
|
||||
address: :443
|
||||
asDefault: true
|
||||
http:
|
||||
tls:
|
||||
certResolver: step
|
||||
|
||||
providers:
|
||||
file:
|
||||
directory: /etc/traefik/dynamic
|
||||
watch: true
|
||||
|
||||
docker:
|
||||
defaultRule: |
|
||||
Host(`{{ trim (index .Labels "serviceName") }}.dev.local`) {{range $i, $domain := splitList "," (index .Labels "serviceDomains")}}{{if ne $domain ""}}|| Host(`{{$domain}}`){{end}}{{end}}
|
||||
constraints: LabelRegex(`serviceName`, `.+`) && !Label(`com.docker.compose.oneoff`, `True`)
|
||||
|
||||
certificatesResolvers:
|
||||
step:
|
||||
acme:
|
||||
caServer: https://localhost:9000/acme/acme/directory
|
||||
certificatesDuration: 24
|
||||
email: dev@example.com
|
||||
storage: /traefik/certs.json
|
||||
httpChallenge:
|
||||
entryPoint: http
|
Reference in New Issue
Block a user