openvibers/openvibe.games Commits
Games vhosts: the ACME challenge location, and /internal/ and /metrics never proxied. (#13)
Changes
@@@ -15,7 +15,9 @@ server {listen 80;listen [::]:80;server_name openvibe.games play.openvibe.games;-- return 301 https://$host$request_uri;++++ location /.well-known/acme-challenge/ { root /var/www/certbot; }++ location / { return 301 https://$host$request_uri; }}server {@@@ -34,6 +36,12 @@ server {return 404;}++ # ── The Events webhook: OpenVibe.Events delivers over loopback, never through the public vhosts ──++ location /internal/ { return 404; }++++ # ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:8000/metrics) ──++ location = /metrics { return 404; }++location / {proxy_pass http://127.0.0.1:8000;proxy_http_version 1.1;@@@ -65,6 +73,12 @@ server {return 404;}++ # ── The Events webhook: OpenVibe.Events delivers over loopback, never through the public vhosts ──++ location /internal/ { return 404; }++++ # ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:8000/metrics) ──++ location = /metrics { return 404; }++location / {proxy_pass http://127.0.0.1:8000;proxy_http_version 1.1;
@@ -15,7 +15,9 @@ server {
@@ -15,7 +15,9 @@ server {
listen 80;
listen 80;
listen [::]:80;
listen [::]:80;
server_name openvibe.games play.openvibe.games;
server_name openvibe.games play.openvibe.games;
- return 301 https://$host$request_uri;
+
+ location /.well-known/acme-challenge/ { root /var/www/certbot; }
+ location / { return 301 https://$host$request_uri; }
}
}
server {
server {
@@ -34,6 +36,12 @@ server {
@@ -34,6 +36,12 @@ server {
return 404;
return 404;
}
}
+ # ── The Events webhook: OpenVibe.Events delivers over loopback, never through the public vhosts ──
+ location /internal/ { return 404; }
+
+ # ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:8000/metrics) ──
+ location = /metrics { return 404; }
+
location / {
location / {
proxy_pass http://127.0.0.1:8000;
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
proxy_http_version 1.1;
@@ -65,6 +73,12 @@ server {
@@ -65,6 +73,12 @@ server {
return 404;
return 404;
}
}
+ # ── The Events webhook: OpenVibe.Events delivers over loopback, never through the public vhosts ──
+ location /internal/ { return 404; }
+
+ # ── Prometheus metrics: host-local scrapers only (http://127.0.0.1:8000/metrics) ──
+ location = /metrics { return 404; }
+
location / {
location / {
proxy_pass http://127.0.0.1:8000;
proxy_pass http://127.0.0.1:8000;
proxy_http_version 1.1;
proxy_http_version 1.1;