From 1417856dd6cd2bbf7c9b0a7c594341141b996af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sun, 29 May 2022 20:17:30 +0200 Subject: [PATCH] fix the shit --- roles/webserver/templates/nginx.conf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/roles/webserver/templates/nginx.conf b/roles/webserver/templates/nginx.conf index 1c920e6..163d4a0 100644 --- a/roles/webserver/templates/nginx.conf +++ b/roles/webserver/templates/nginx.conf @@ -73,24 +73,24 @@ http { client_max_body_size 8G; {%- endif %} location /{ - {%- if server.https %} + {% if server.https %} proxy_pass https://127.0.0.1:{{ server.port }}; - {%- else %} + {% else %} proxy_pass http://127.0.0.1:{{ server.port }}; - {%- endif %} + {% endif %} } location /metrics{ {%- if server.https %} proxy_pass https://127.0.0.1:{{ server.port }}; - {%- else %} + {% else %} proxy_pass http://127.0.0.1:{{ server.port }}; - {%- endif %} + {% endif %} allow 192.168.69.0/24; deny all; } } - {%- endfor %} + {% endfor %} server { listen 8888;