openvibers/openvibe.live Commits
Live: the vhost carries Chat's calls include like production, and refuses /metrics in any case (#67)
Changes
@@@ -74,7 +74,7 @@ server {limit_conn addr_limit 256;# Prometheus metrics are for local scrapers only; Node also 404s any proxied request to it.-- location = /metrics { return 404; }++ location ~* ^/metrics(/|$) { return 404; } # any letter case: Express routes /Metrics toolocation = /api/auth/register {limit_req zone=login_limit burst=5 nodelay;@@@ -137,6 +137,8 @@ server {# OpenVibe.Chat (Wave 6) serves /ws/chat, /api/chat/, /api/dm/, /api/tts/ and /api/sounds# (its repo's deploy/nginx). A glob include is a no-op when Chat is not installed.include /opt/openvibe.chat/deploy/nginx/*.locations.conf;++ # Chat's calls locations for this site (the [f] glob keeps it a no-op without Chat, like the line above).++ include /opt/openvibe.chat/deploy/nginx/calls/openvibe.live-calls.locations.con[f];location /api/ {limit_req zone=api_limit burst=40 nodelay;
@@ -74,7 +74,7 @@ server {
@@ -74,7 +74,7 @@ server {
limit_conn addr_limit 256;
limit_conn addr_limit 256;
# Prometheus metrics are for local scrapers only; Node also 404s any proxied request to it.
# Prometheus metrics are for local scrapers only; Node also 404s any proxied request to it.
- location = /metrics { return 404; }
+ location ~* ^/metrics(/|$) { return 404; } # any letter case: Express routes /Metrics too
location = /api/auth/register {
location = /api/auth/register {
limit_req zone=login_limit burst=5 nodelay;
limit_req zone=login_limit burst=5 nodelay;
@@ -137,6 +137,8 @@ server {
@@ -137,6 +137,8 @@ server {
# OpenVibe.Chat (Wave 6) serves /ws/chat, /api/chat/, /api/dm/, /api/tts/ and /api/sounds
# OpenVibe.Chat (Wave 6) serves /ws/chat, /api/chat/, /api/dm/, /api/tts/ and /api/sounds
# (its repo's deploy/nginx). A glob include is a no-op when Chat is not installed.
# (its repo's deploy/nginx). A glob include is a no-op when Chat is not installed.
include /opt/openvibe.chat/deploy/nginx/*.locations.conf;
include /opt/openvibe.chat/deploy/nginx/*.locations.conf;
+ # Chat's calls locations for this site (the [f] glob keeps it a no-op without Chat, like the line above).
+ include /opt/openvibe.chat/deploy/nginx/calls/openvibe.live-calls.locations.con[f];
location /api/ {
location /api/ {
limit_req zone=api_limit burst=40 nodelay;
limit_req zone=api_limit burst=40 nodelay;