Nginx: Ignore all internal-api paths

This commit is contained in:
junderw authored and Mononaut committed 2023-11-12 05:04:40 +00:00
1 parent 1e69f3b331
commit 511b827bf5
2 files changed
+10

No files matched your search

+5
View File
@@ -39,6 +39,11 @@
try_files $uri $uri/ /$1/index.html =404;
}
# any path containing .*/internal-api/.* anywhere is ignored
location ~ ^/.*?/internal-api/ {
return 404;
}
# static API docs
location = /api {
try_files $uri $uri/ /en-US/index.html =404;
+5
View File
@@ -2,6 +2,11 @@
# mempool #
###########
# any path containing .*/internal-api/.* anywhere is ignored
location ~ ^/.*?/internal-api/ {
return 404;
}
# websocket has special HTTP headers
location /api/v1/ws {
try_files /dev/null @mempool-api-v1-websocket;