openvibers/openvibe.watch Commits
nginx: close the resource index on the public vhost (^~ prefix) (#29)
Changes
@@@ -103,7 +103,8 @@ server {# /Metrics and friends are refused the same way.location ~* ^/metrics(/|$) { return 404; }# OpenVibe.Services reads the resource index on loopback (127.0.0.1:4730) with a service token.-- location ~* ^/api/v1/resources(/|$) { return 404; }++ # A ^~ prefix: the `^~ /api/v1/` block below stops regex matching, so a regex here would never run.++ location ^~ /api/v1/resources { return 404; }# ── Sign-in: the network's own budget. /auth/me is the navbar's session probe and gets the# page budget instead, because it runs on every page view. ──
@@ -103,7 +103,8 @@ server {
@@ -103,7 +103,8 @@ server {
# /Metrics and friends are refused the same way.
# /Metrics and friends are refused the same way.
location ~* ^/metrics(/|$) { return 404; }
location ~* ^/metrics(/|$) { return 404; }
# OpenVibe.Services reads the resource index on loopback (127.0.0.1:4730) with a service token.
# OpenVibe.Services reads the resource index on loopback (127.0.0.1:4730) with a service token.
- location ~* ^/api/v1/resources(/|$) { return 404; }
+ # A ^~ prefix: the `^~ /api/v1/` block below stops regex matching, so a regex here would never run.
+ location ^~ /api/v1/resources { return 404; }
# ── Sign-in: the network's own budget. /auth/me is the navbar's session probe and gets the
# ── Sign-in: the network's own budget. /auth/me is the navbar's session probe and gets the
# page budget instead, because it runs on every page view. ──
# page budget instead, because it runs on every page view. ──