2020-06-17 06:23:01 +00:00
|
|
|
---
|
|
|
|
log:
|
2020-09-29 22:54:36 +00:00
|
|
|
level: {{ env "LOG_LEVEL" }}
|
2020-06-17 06:23:01 +00:00
|
|
|
|
|
|
|
providers:
|
|
|
|
docker:
|
|
|
|
endpoint: "unix:///var/run/docker.sock"
|
|
|
|
exposedByDefault: false
|
|
|
|
network: proxy
|
|
|
|
swarmMode: true
|
|
|
|
file:
|
|
|
|
filename: /etc/traefik/file-provider.yml
|
|
|
|
|
|
|
|
api:
|
2020-09-29 22:54:36 +00:00
|
|
|
dashboard: {{ env "DASHBOARD_ENABLED" }}
|
2020-06-17 06:23:01 +00:00
|
|
|
debug: false
|
|
|
|
|
|
|
|
entrypoints:
|
|
|
|
web:
|
|
|
|
address: ":80"
|
|
|
|
http:
|
|
|
|
redirections:
|
|
|
|
entryPoint:
|
|
|
|
to: web-secure
|
|
|
|
web-secure:
|
|
|
|
address: ":443"
|
|
|
|
gitea-ssh:
|
|
|
|
address: ":2222"
|
2020-10-20 11:02:39 +00:00
|
|
|
{{ if eq (env "SMTP_ENABLED") "1" }}
|
2020-09-26 13:12:00 +00:00
|
|
|
smtp-submission:
|
|
|
|
address: ":587"
|
2020-10-20 11:02:39 +00:00
|
|
|
{{ end }}
|
2020-06-17 06:23:01 +00:00
|
|
|
|
2020-09-29 22:54:36 +00:00
|
|
|
ping:
|
|
|
|
entryPoint: web
|
|
|
|
|
2020-06-17 06:23:01 +00:00
|
|
|
certificatesResolvers:
|
|
|
|
staging:
|
|
|
|
acme:
|
2020-10-15 13:38:05 +00:00
|
|
|
email: {{ env "LETS_ENCRYPT_EMAIL" }}
|
2020-06-17 06:23:01 +00:00
|
|
|
storage: /etc/letsencrypt/staging-acme.json
|
|
|
|
caServer: "https://acme-staging-v02.api.letsencrypt.org/directory"
|
|
|
|
httpChallenge:
|
|
|
|
entryPoint: web
|
|
|
|
production:
|
|
|
|
acme:
|
2020-10-15 13:38:05 +00:00
|
|
|
email: {{ env "LETS_ENCRYPT_EMAIL" }}
|
2020-06-17 06:23:01 +00:00
|
|
|
storage: /etc/letsencrypt/production-acme.json
|
|
|
|
httpChallenge:
|
|
|
|
entryPoint: web
|