mirror of
https://github.com/furyhawk/cloudy.git
synced 2026-05-21 23:46:51 +00:00
Add sslheader middleware to Traefik configuration
This commit is contained in:
@@ -52,6 +52,7 @@ http:
|
|||||||
- web-secure
|
- web-secure
|
||||||
middlewares:
|
middlewares:
|
||||||
- csrf
|
- csrf
|
||||||
|
- sslheader
|
||||||
service: forum_server
|
service: forum_server
|
||||||
tls:
|
tls:
|
||||||
# https://docs.traefik.io/master/routing/routers/#certresolver
|
# https://docs.traefik.io/master/routing/routers/#certresolver
|
||||||
@@ -141,6 +142,11 @@ http:
|
|||||||
# https://docs.djangoproject.com/en/dev/ref/csrf/#ajax
|
# https://docs.djangoproject.com/en/dev/ref/csrf/#ajax
|
||||||
headers:
|
headers:
|
||||||
hostsProxyHeaders: ["X-CSRFToken"]
|
hostsProxyHeaders: ["X-CSRFToken"]
|
||||||
|
sslheader:
|
||||||
|
# https://docs.traefik.io/master/middlewares/headers/
|
||||||
|
headers:
|
||||||
|
customrequestheaders:
|
||||||
|
X-Forwarded-Proto: "https"
|
||||||
no-www:
|
no-www:
|
||||||
redirectRegex:
|
redirectRegex:
|
||||||
regex: "^https?://www\\.(.+)"
|
regex: "^https?://www\\.(.+)"
|
||||||
|
|||||||
Reference in New Issue
Block a user