cookiecutter-django/{{cookiecutter.project_slug}}/compose/production/caddy/Caddyfile

16 lines
392 B
Caddyfile
Raw Normal View History

www.{% raw %}{$DOMAIN_NAME}{% endraw %} {
redir https://{% raw %}{$DOMAIN_NAME}{% endraw %}
2017-08-11 12:16:15 +03:00
}
{% raw %}{$DOMAIN_NAME}{% endraw %} {
2017-08-11 12:16:15 +03:00
proxy / django:5000 {
header_upstream Host {host}
header_upstream X-Real-IP {remote}
header_upstream X-Forwarded-Proto {scheme}
header_upstream X-CSRFToken {~csrftoken}
2017-08-11 12:16:15 +03:00
}
log stdout
errors stdout
gzip
}