fix the shit

This commit is contained in:
Torma Kristóf 2022-05-29 20:17:30 +02:00
parent c8aece5513
commit 1417856dd6
1 changed files with 6 additions and 6 deletions

View File

@ -73,24 +73,24 @@ http {
client_max_body_size 8G; client_max_body_size 8G;
{%- endif %} {%- endif %}
location /{ location /{
{%- if server.https %} {% if server.https %}
proxy_pass https://127.0.0.1:{{ server.port }}; proxy_pass https://127.0.0.1:{{ server.port }};
{%- else %} {% else %}
proxy_pass http://127.0.0.1:{{ server.port }}; proxy_pass http://127.0.0.1:{{ server.port }};
{%- endif %} {% endif %}
} }
location /metrics{ location /metrics{
{%- if server.https %} {%- if server.https %}
proxy_pass https://127.0.0.1:{{ server.port }}; proxy_pass https://127.0.0.1:{{ server.port }};
{%- else %} {% else %}
proxy_pass http://127.0.0.1:{{ server.port }}; proxy_pass http://127.0.0.1:{{ server.port }};
{%- endif %} {% endif %}
allow 192.168.69.0/24; allow 192.168.69.0/24;
deny all; deny all;
} }
} }
{%- endfor %} {% endfor %}
server { server {
listen 8888; listen 8888;