Add internal endpoint blocking to all Nginx configs
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
# 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
|
||||
location /testnet/api/v1/ws {
|
||||
rewrite ^/testnet/(.*) /$1 break;
|
||||
|
||||
Reference in New Issue
Block a user