Traefik - Also redirect wwww. to service.

This commit is contained in:
Tevak 2020-04-04 17:26:24 +02:00
parent 83f52c7933
commit 0df3087d3d
2 changed files with 4 additions and 2 deletions

View File

@ -200,6 +200,7 @@ Listed in alphabetical order.
Sascha `@saschalalala`_ @saschalalala
Shupeyko Nikita `@webyneter`_
Sławek Ehlert `@slafs`_
Sorasful `@sorasful`_
Srinivas Nyayapati `@shireenrao`_
stepmr `@stepmr`_
Steve Steiner `@ssteinerX`_
@ -372,6 +373,7 @@ Listed in alphabetical order.
.. _@siauPatrick: https://github.com/siauPatrick
.. _@sladinji: https://github.com/sladinji
.. _@slafs: https://github.com/slafs
.. _@sorasful:: https://github.com/sorasful
.. _@ssteinerX: https://github.com/ssteinerx
.. _@step21: https://github.com/step21
.. _@stepmr: https://github.com/stepmr

View File

@ -28,7 +28,7 @@ certificatesResolvers:
http:
routers:
web-router:
rule: "Host(`{{ cookiecutter.domain_name }}`)"
rule: "Host(`{{ cookiecutter.domain_name }}`) || Host(`www.{{ cookiecutter.domain_name }}`)"
entryPoints:
- web
middlewares:
@ -37,7 +37,7 @@ http:
service: django
web-secure-router:
rule: "Host(`{{ cookiecutter.domain_name }}`)"
rule: "Host(`{{ cookiecutter.domain_name }}`) || Host(`www.{{ cookiecutter.domain_name }}`)"
entryPoints:
- web-secure
middlewares: