feat: init
This commit is contained in:
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