Add internal endpoint blocking to all Nginx configs
This commit is contained in:
parent
502a1c021e
commit
4972f00a96
@ -2,12 +2,14 @@
|
|||||||
# mempool #
|
# mempool #
|
||||||
###########
|
###########
|
||||||
|
|
||||||
|
# Block the internal APIs of esplora
|
||||||
location /api/internal/ {
|
location /api/internal/ {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
location /api/v1/internal/ {
|
location /api/v1/internal/ {
|
||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
# websocket has special HTTP headers
|
# websocket has special HTTP headers
|
||||||
location /api/v1/ws {
|
location /api/v1/ws {
|
||||||
try_files /dev/null @mempool-api-v1-websocket;
|
try_files /dev/null @mempool-api-v1-websocket;
|
||||||
|
@ -2,6 +2,14 @@
|
|||||||
# mempool #
|
# mempool #
|
||||||
###########
|
###########
|
||||||
|
|
||||||
|
# Block the internal APIs of esplora
|
||||||
|
location /liquid/api/internal/ {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
location /liquid/api/v1/internal/ {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
# websocket has special HTTP headers
|
# websocket has special HTTP headers
|
||||||
location /liquid/api/v1/ws {
|
location /liquid/api/v1/ws {
|
||||||
rewrite ^/liquid/(.*) /$1 break;
|
rewrite ^/liquid/(.*) /$1 break;
|
||||||
|
@ -2,6 +2,14 @@
|
|||||||
# mempool #
|
# mempool #
|
||||||
###########
|
###########
|
||||||
|
|
||||||
|
# Block the internal APIs of esplora
|
||||||
|
location /liquidtestnet/api/internal/ {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
location /liquidtestnet/api/v1/internal/ {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
# websocket has special HTTP headers
|
# websocket has special HTTP headers
|
||||||
location /liquidtestnet/api/v1/ws {
|
location /liquidtestnet/api/v1/ws {
|
||||||
rewrite ^/liquidtestnet/(.*) /$1 break;
|
rewrite ^/liquidtestnet/(.*) /$1 break;
|
||||||
|
@ -2,6 +2,14 @@
|
|||||||
# mempool #
|
# mempool #
|
||||||
###########
|
###########
|
||||||
|
|
||||||
|
# Block the internal APIs of esplora
|
||||||
|
location /signet/api/internal/ {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
location /signet/api/v1/internal/ {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
# websocket has special HTTP headers
|
# websocket has special HTTP headers
|
||||||
location /signet/api/v1/ws {
|
location /signet/api/v1/ws {
|
||||||
rewrite ^/signet/(.*) /$1 break;
|
rewrite ^/signet/(.*) /$1 break;
|
||||||
|
@ -2,6 +2,14 @@
|
|||||||
# mempool #
|
# mempool #
|
||||||
###########
|
###########
|
||||||
|
|
||||||
|
# Block the internal APIs of esplora
|
||||||
|
location /testnet/api/internal/ {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
location /testnet/api/v1/internal/ {
|
||||||
|
return 404;
|
||||||
|
}
|
||||||
|
|
||||||
# websocket has special HTTP headers
|
# websocket has special HTTP headers
|
||||||
location /testnet/api/v1/ws {
|
location /testnet/api/v1/ws {
|
||||||
rewrite ^/testnet/(.*) /$1 break;
|
rewrite ^/testnet/(.*) /$1 break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user