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

View File

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