photoprism/docker/examples/cloud/traefik.yaml

47 lines
1.1 KiB
YAML
Raw Normal View History

2021-08-05 20:18:08 +02:00
# Uncomment to enable debug mode:
# log:
# level: DEBUG
serversTransport:
# Don't verify internal HTTPS certs:
2021-08-05 20:18:08 +02:00
insecureSkipVerify: true
# !! REMOVE when using Let's Encrypt as HTTPS cert resolver !!
2021-08-05 20:18:08 +02:00
rootCAs:
- "/certs/ca.crt"
# Open ports ond protocols (HTTP will be redirected to HTTPS):
2021-08-05 20:18:08 +02:00
entryPoints:
web:
address: ":80"
http:
redirections:
entryPoint:
to: websecure
scheme: https
websecure:
address: ":443"
certificatesResolvers:
myresolver:
# See https://doc.traefik.io/traefik/https/acme/
2021-08-05 20:18:08 +02:00
acme:
# !! REPLACE example email with your actual email address !!
2021-08-05 20:18:08 +02:00
email: info@example.com
storage: /data/letsencrypt.json
httpChallenge:
entryPoint: web
providers:
# !! REMOVE file provider when using Let's Encrypt as HTTPS cert resolver !!
2021-08-05 20:18:08 +02:00
file:
filename: "/certs/config.yml"
watch: true
# Always keep this:
2021-08-05 20:18:08 +02:00
docker:
exposedByDefault: false
watch: true
# Traefik API & dashboard are disabled by default for security reasons:
2021-08-05 20:18:08 +02:00
api:
insecure: false
dashboard: false