From 4a9abab3626e04f2ba7a6b4c7444632cabeb30f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 13 Apr 2017 15:19:26 +0000 Subject: [PATCH] Fix nginx configuration generation --- certidude/templates/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certidude/templates/nginx.conf b/certidude/templates/nginx.conf index bb44986..9a52aaa 100644 --- a/certidude/templates/nginx.conf +++ b/certidude/templates/nginx.conf @@ -7,7 +7,7 @@ server { root {{static_path}}; location /api/ { - proxy_pass http://127.0.0.1/api/; + proxy_pass http://127.0.0.1{% if listen != 80 }:{{ listen }}{% endif %}/api/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_connect_timeout 600;