From 39cea24f689f24e0db9d736d16dc9f608b3de642 Mon Sep 17 00:00:00 2001 From: palamccc Date: Tue, 13 Sep 2016 06:54:52 +0530 Subject: [PATCH] Added support for VIRTUAL_PROTO=custom fixed jwilder/nginx-proxy#567 --- nginx.tmpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nginx.tmpl b/nginx.tmpl index 980eace..b0bb49e 100644 --- a/nginx.tmpl +++ b/nginx.tmpl @@ -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 }}