Nginx: Ignore all internal-api paths
This commit is contained in:
parent
1e69f3b331
commit
511b827bf5
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user