diff --git a/roles/webserver/templates/nginx.conf b/roles/webserver/templates/nginx.conf index a37c666..1c920e6 100644 --- a/roles/webserver/templates/nginx.conf +++ b/roles/webserver/templates/nginx.conf @@ -79,6 +79,15 @@ http { proxy_pass http://127.0.0.1:{{ server.port }}; {%- endif %} } + location /metrics{ + {%- if server.https %} + proxy_pass https://127.0.0.1:{{ server.port }}; + {%- else %} + proxy_pass http://127.0.0.1:{{ server.port }}; + {%- endif %} + allow 192.168.69.0/24; + deny all; + } } {%- endfor %}