mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-11-30 13:34:02 +03:00
42 lines
1015 B
TOML
42 lines
1015 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 = "{{ cookiecutter.email }}"
|
|
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:{{ cookiecutter.domain_name }}"
|