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
|
2023-04-20 19:19:47 +00:00
|
|
|
{{ if eq (env "FILE_PROVIDER_DIRECTORY_ENABLED") "1" }}
|
|
|
|
file:
|
|
|
|
directory: /etc/traefik/file-providers
|
|
|
|
watch: true
|
|
|
|
{{ else }}
|
2020-06-17 06:23:01 +00:00
|
|
|
file:
|
|
|
|
filename: /etc/traefik/file-provider.yml
|
2023-04-20 19:19:47 +00:00
|
|
|
{{ end }}
|
2020-06-17 06:23:01 +00:00
|
|
|
|
|
|
|
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"
|
2021-02-14 14:26:52 +00:00
|
|
|
{{ if eq (env "GITEA_SSH_ENABLED") "1" }}
|
2020-06-17 06:23:01 +00:00
|
|
|
gitea-ssh:
|
|
|
|
address: ":2222"
|
2021-02-14 14:26:52 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ if eq (env "FOODSOFT_SMTP_ENABLED") "1" }}
|
2020-11-08 19:28:50 +00:00
|
|
|
foodsoft-smtp:
|
|
|
|
address: ":2525"
|
2021-02-14 14:26:52 +00:00
|
|
|
{{ end }}
|
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 }}
|
2021-05-10 11:04:53 +00:00
|
|
|
{{ if eq (env "PEERTUBE_RTMP_ENABLED") "1" }}
|
|
|
|
peertube-rtmp:
|
|
|
|
address: ":1935"
|
|
|
|
{{ end }}
|
2021-06-05 12:19:59 +00:00
|
|
|
{{ if eq (env "SSB_MUXRPC_ENABLED") "1" }}
|
|
|
|
ssb-muxrpc:
|
|
|
|
address: ":8008"
|
|
|
|
{{ end }}
|
2021-06-07 07:42:50 +00:00
|
|
|
{{ if eq (env "MSSQL_ENABLED") "1" }}
|
|
|
|
mssql:
|
|
|
|
address: ":1433"
|
|
|
|
{{ end }}
|
2021-08-07 12:24:39 +00:00
|
|
|
{{ if eq (env "MUMBLE_ENABLED") "1" }}
|
|
|
|
mumble:
|
|
|
|
address: ":64738"
|
|
|
|
mumble-udp:
|
|
|
|
address: ":64738/udp"
|
|
|
|
{{ end }}
|
2022-03-26 21:49:10 +00:00
|
|
|
{{ if eq (env "COMPY_ENABLED") "1" }}
|
|
|
|
compy:
|
|
|
|
address: ":9999"
|
|
|
|
{{ end }}
|
2021-08-09 23:28:15 +00:00
|
|
|
{{ if eq (env "METRICS_ENABLED") "1" }}
|
|
|
|
metrics:
|
|
|
|
address: ":8082"
|
|
|
|
{{ end }}
|
2022-01-06 09:01:52 +00:00
|
|
|
{{ if eq (env "MATRIX_FEDERATION_ENABLED") "1" }}
|
|
|
|
matrix-federation:
|
|
|
|
address: ":9001"
|
|
|
|
{{ end }}
|
2020-06-17 06:23:01 +00:00
|
|
|
|
2020-09-29 22:54:36 +00:00
|
|
|
ping:
|
|
|
|
entryPoint: web
|
|
|
|
|
2021-08-09 23:28:15 +00:00
|
|
|
{{ if eq (env "METRICS_ENABLED") "1" }}
|
|
|
|
metrics:
|
|
|
|
prometheus:
|
|
|
|
entryPoint: metrics
|
|
|
|
{{ end }}
|
|
|
|
|
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
|
2021-06-19 00:47:25 +00:00
|
|
|
{{ if eq (env "LETS_ENCRYPT_DNS_CHALLENGE_ENABLED") "1" }}
|
|
|
|
dnsChallenge:
|
|
|
|
provider: {{ (env "LETS_ENCRYPT_DNS_CHALLENGE_PROVIDER") }}
|
|
|
|
resolvers:
|
|
|
|
- "1.1.1.1:53"
|
|
|
|
- "8.8.8.8:53"
|
|
|
|
{{ end }}
|
2020-06-17 06:23:01 +00:00
|
|
|
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
|
2021-06-19 00:47:25 +00:00
|
|
|
{{ if eq (env "LETS_ENCRYPT_DNS_CHALLENGE_ENABLED") "1" }}
|
|
|
|
dnsChallenge:
|
|
|
|
provider: {{ (env "LETS_ENCRYPT_DNS_CHALLENGE_PROVIDER") }}
|
|
|
|
resolvers:
|
|
|
|
- "1.1.1.1:53"
|
2022-11-11 17:02:09 +00:00
|
|
|
- "9.9.9.9:53"
|
2021-06-19 00:47:25 +00:00
|
|
|
{{ end }}
|