openvibers/openvibe.chat Commits
Chat: nginx refuses /internal/ and /metrics case-insensitively (#44)
Changes
@@@ -73,8 +73,8 @@ server {proxy_cache_bypass 1;# Host-only surfaces (the app refuses them from the proxy too).-- location = /metrics { return 404; }-- location ^~ /internal/ { return 404; }++ location ~* ^/metrics(/|$) { return 404; }++ location ~* ^/internal(/|$) { return 404; }# Chat's socket.# A location's proxy_set_header replaces every server-level one, so the client address is set here
@@ -73,8 +73,8 @@ server {
@@ -73,8 +73,8 @@ server {
proxy_cache_bypass 1;
proxy_cache_bypass 1;
# Host-only surfaces (the app refuses them from the proxy too).
# Host-only surfaces (the app refuses them from the proxy too).
- location = /metrics { return 404; }
- location ^~ /internal/ { return 404; }
+ location ~* ^/metrics(/|$) { return 404; }
+ location ~* ^/internal(/|$) { return 404; }
# Chat's socket.
# Chat's socket.
# A location's proxy_set_header replaces every server-level one, so the client address is set here
# A location's proxy_set_header replaces every server-level one, so the client address is set here