42 lines
987 B
TOML
42 lines
987 B
TOML
|
logLevel = "INFO"
|
||
|
defaultEntryPoints = ["http", "https"]
|
||
|
|
||
|
# Entrypoints, http and https
|
||
|
[entryPoints]
|
||
|
# http should be redirected to https
|
||
|
[entryPoints.http]
|
||
|
address = ":80"
|
||
|
[entryPoints.http.redirect]
|
||
|
entryPoint = "https"
|
||
|
# https is the default
|
||
|
[entryPoints.https]
|
||
|
address = ":443"
|
||
|
[entryPoints.https.tls]
|
||
|
|
||
|
# Enable ACME (Let's Encrypt): automatic SSL
|
||
|
[acme]
|
||
|
# Email address used for registration
|
||
|
email = "kadenbach@qabel.de"
|
||
|
storage = "/etc/traefik/acme/acme.json"
|
||
|
entryPoint = "https"
|
||
|
onDemand = false
|
||
|
OnHostRule = true
|
||
|
# Use a HTTP-01 acme challenge rather than TLS-SNI-01 challenge
|
||
|
[acme.httpChallenge]
|
||
|
entryPoint = "http"
|
||
|
|
||
|
[file]
|
||
|
[backends]
|
||
|
[backends.django]
|
||
|
[backends.django.servers.server1]
|
||
|
url = "http://django:5000"
|
||
|
|
||
|
[frontends]
|
||
|
[frontends.django]
|
||
|
backend = "django"
|
||
|
passHostHeader = true
|
||
|
[frontends.django.headers]
|
||
|
HostsProxyHeaders = ['X-CSRFToken']
|
||
|
[frontends.django.routes.dr1]
|
||
|
rule = "Host:qabel.de"
|