Skip to content

Instantly share code, notes, and snippets.

@protasovse
Last active March 10, 2021 08:07
Show Gist options
  • Save protasovse/b4c3a1d07102e5cd25fb918bdc3d0d21 to your computer and use it in GitHub Desktop.
Save protasovse/b4c3a1d07102e5cd25fb918bdc3d0d21 to your computer and use it in GitHub Desktop.
Мой traefik.yml для настройки cookiecutter-django без https
log:
level: INFO
entryPoints:
web:
address: ":80"
flower:
address: ":5555"
http:
routers:
web-router:
rule: "Host(`localhost`)"
entryPoints:
- web
middlewares:
- csrf
service: django
flower-router:
rule: "Host(`localhost`)"
entryPoints:
- flower
service: flower
middlewares:
csrf:
headers:
hostsProxyHeaders: ["X-CSRFToken"]
services:
django:
loadBalancer:
servers:
- url: http://django:5000
flower:
loadBalancer:
servers:
- url: http://flower:5555
providers:
file:
filename: /etc/traefik/traefik.yml
watch: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment