1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 16:25:17 +00:00

Fix nginx configuration generation

This commit is contained in:
Lauri Võsandi 2017-04-13 15:19:26 +00:00
parent d7a2c7c193
commit 4a9abab362

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;