Added Traefik label to pass the host header
This commit is contained in:
@@ -30,18 +30,8 @@ services:
|
|||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
io.rancher.sidekicks: cron, web
|
io.rancher.sidekicks: cron, web
|
||||||
{{- if .Values.TRAEFIK_HOST}}
|
|
||||||
traefik.enable: true
|
|
||||||
traefik.frontend.rule: Host:${TRAEFIK_HOST}
|
|
||||||
traefik.port: "80"
|
|
||||||
traefik.frontend.entryPoints: https
|
|
||||||
{{- else}}
|
|
||||||
traefik.enable: false
|
|
||||||
{{- end}}
|
|
||||||
links:
|
links:
|
||||||
- mysql
|
- mysql
|
||||||
networks:
|
|
||||||
- public-proxy
|
|
||||||
restart: on-failure
|
restart: on-failure
|
||||||
volumes:
|
volumes:
|
||||||
- Logo:/var/www/app/public/logo
|
- Logo:/var/www/app/public/logo
|
||||||
@@ -116,6 +106,15 @@ services:
|
|||||||
{{- if .Values.HOST_LABEL}}
|
{{- if .Values.HOST_LABEL}}
|
||||||
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
io.rancher.scheduler.affinity:host_label: ${HOST_LABEL}
|
||||||
{{- end}}
|
{{- end}}
|
||||||
|
{{- if .Values.TRAEFIK_HOST}}
|
||||||
|
traefik.enable: true
|
||||||
|
traefik.frontend.rule: Host:${TRAEFIK_HOST}
|
||||||
|
traefik.port: "80"
|
||||||
|
traefik.frontend.entryPoints: https
|
||||||
|
traefik.frontend.passHostHeader: true
|
||||||
|
{{- else}}
|
||||||
|
traefik.enable: false
|
||||||
|
{{- end}}
|
||||||
links:
|
links:
|
||||||
- app
|
- app
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
Reference in New Issue
Block a user