Last active
March 10, 2021 08:07
-
-
Save protasovse/b4c3a1d07102e5cd25fb918bdc3d0d21 to your computer and use it in GitHub Desktop.
Мой traefik.yml для настройки cookiecutter-django без https
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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