Fix nginx configuration generation

This commit is contained in:
Lauri Võsandi 2017-04-13 15:19:26 +00:00
parent d7a2c7c193
commit 4a9abab362
1 changed files with 1 additions and 1 deletions

View File

@ -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;