Added support for VIRTUAL_PROTO=custom

fixed jwilder/nginx-proxy#567
This commit is contained in:
palamccc 2016-09-13 06:54:52 +05:30 committed by GitHub
parent 40d433ae80
commit 39cea24f68

View file

@ -168,7 +168,8 @@ server {
{{ end }}
location / {
{{ if eq $proto "uwsgi" }}
{{ if eq $proto "custom" }}
{{ else if eq $proto "uwsgi" }}
include uwsgi_params;
uwsgi_pass {{ trim $proto }}://{{ trim $host }};
{{ else }}
@ -202,7 +203,8 @@ server {
{{ end }}
location / {
{{ if eq $proto "uwsgi" }}
{{ if eq $proto "custom" }}
{{ else if eq $proto "uwsgi" }}
include uwsgi_params;
uwsgi_pass {{ trim $proto }}://{{ trim $host }};
{{ else }}