1
0

Add librepatron support

This commit is contained in:
nicolas.dorier
2019-01-22 23:56:58 +09:00
parent 3cdb112080
commit 6dd33ba768
4 changed files with 69 additions and 2 deletions

View File

@@ -344,6 +344,21 @@ server {
{{ end }}
{{ end }}
{{ if eq $service_name "librepatron" }}
{{ range $container := $ }}
{{ $serviceName := (index $container.Labels "com.docker.compose.service") }}
{{ if (eq $serviceName "isso") }}
location /isso {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Script-Name /isso;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://isso:8080;
}
{{ end }}
{{ end }}
{{ end }}
}
{{ end }}