2025-11-28 21:14:40 +00:00
|
|
|
api:
|
|
|
|
|
dashboard: true
|
2025-11-29 08:49:39 +00:00
|
|
|
insecure: false
|
2025-11-28 21:14:40 +00:00
|
|
|
|
|
|
|
|
entryPoints:
|
|
|
|
|
web:
|
|
|
|
|
address: ":80"
|
2025-11-29 11:21:58 +00:00
|
|
|
# HTTP naar HTTPS redirect (Nu Traefik de voordeur is, moet dit AAN staan)
|
|
|
|
|
http:
|
|
|
|
|
redirections:
|
|
|
|
|
entryPoint:
|
|
|
|
|
to: websecure
|
|
|
|
|
scheme: https
|
|
|
|
|
|
|
|
|
|
# Trusted IPs config
|
2025-11-28 21:47:38 +00:00
|
|
|
forwardedHeaders:
|
|
|
|
|
trustedIPs:
|
2025-11-28 22:03:52 +00:00
|
|
|
- "127.0.0.1/32"
|
|
|
|
|
- "10.0.0.0/8"
|
|
|
|
|
- "192.168.0.0/16"
|
|
|
|
|
- "172.16.0.0/12"
|
|
|
|
|
- "10.52.150.20/32" # Jouw NAS IP
|
2025-11-28 21:38:16 +00:00
|
|
|
|
2025-11-28 21:14:40 +00:00
|
|
|
websecure:
|
|
|
|
|
address: ":443"
|
2025-11-28 21:47:38 +00:00
|
|
|
forwardedHeaders:
|
|
|
|
|
trustedIPs:
|
|
|
|
|
- "127.0.0.1/32"
|
2025-11-28 22:03:52 +00:00
|
|
|
- "10.52.150.20/32" # Jouw NAS IP
|
2025-11-29 11:21:58 +00:00
|
|
|
|
|
|
|
|
# --- WILDCARD SSL CONFIGURATIE ---
|
|
|
|
|
# Dit zorgt dat Traefik 1 certificaat haalt voor ALLES (*.stackbabber.nl).
|
|
|
|
|
# Dit voorkomt de Cloudflare foutmeldingen.
|
|
|
|
|
http:
|
|
|
|
|
tls:
|
|
|
|
|
certResolver: letsencrypt
|
|
|
|
|
domains:
|
|
|
|
|
- main: "stackbabber.nl"
|
|
|
|
|
sans:
|
|
|
|
|
- "*.stackbabber.nl"
|
2025-11-28 21:47:38 +00:00
|
|
|
|
|
|
|
|
providers:
|
|
|
|
|
docker:
|
|
|
|
|
endpoint: "unix:///var/run/docker.sock"
|
|
|
|
|
exposedByDefault: false
|
|
|
|
|
network: proxy
|
2025-11-28 21:38:16 +00:00
|
|
|
|
2025-11-28 23:23:48 +00:00
|
|
|
# Hiermee kun je externe hosts (zoals je NAS zelf) koppelen via bestanden in /rules
|
2025-11-28 22:03:52 +00:00
|
|
|
file:
|
|
|
|
|
directory: "/rules"
|
|
|
|
|
watch: true
|
|
|
|
|
|
2025-11-28 21:38:16 +00:00
|
|
|
certificatesResolvers:
|
|
|
|
|
letsencrypt:
|
|
|
|
|
acme:
|
2025-11-28 21:47:38 +00:00
|
|
|
email: csteenbergen@stackbabber.nl
|
2025-11-28 21:38:16 +00:00
|
|
|
storage: acme.json
|
|
|
|
|
dnsChallenge:
|
|
|
|
|
provider: cloudflare
|
|
|
|
|
resolvers:
|
|
|
|
|
- "1.1.1.1:53"
|
2025-11-28 21:47:38 +00:00
|
|
|
- "8.8.8.8:53"
|