Skip to content

Instantly share code, notes, and snippets.

@lgvital
Created August 14, 2019 04:43
Show Gist options
  • Save lgvital/7eec445b48bbcca1a2375c03a5dc0c00 to your computer and use it in GitHub Desktop.
Save lgvital/7eec445b48bbcca1a2375c03a5dc0c00 to your computer and use it in GitHub Desktop.
traefik.toml - django http only
logLevel = "INFO"
defaultEntryPoints = ["http"]
# Entrypoints, http and https
[entryPoints]
[entryPoints.http]
address = ":80"
[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']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment