root: fix /favicon being routed to application server

This commit is contained in:
Jens Langhammer 2020-07-08 13:18:08 +02:00
parent 2717e02d93
commit 9feea155fe
2 changed files with 5 additions and 1 deletions

View File

@ -62,7 +62,7 @@ services:
networks:
- internal
labels:
- traefik.frontend.rule=PathPrefix:/static, /robots.txt
- traefik.frontend.rule=PathPrefix:/static, /robots.txt, /favicon.ico
- traefik.port=80
- traefik.docker.network=internal
traefik:

View File

@ -41,5 +41,9 @@ spec:
backend:
serviceName: {{ $fullName }}-static
servicePort: http
- path: /favicon.ico
backend:
serviceName: {{ $fullName }}-static
servicePort: http
{{- end }}
{{- end }}