Add internal endpoint blocking to all Nginx configs
This commit is contained in:
@@ -2,12 +2,14 @@
|
||||
# mempool #
|
||||
###########
|
||||
|
||||
# Block the internal APIs of esplora
|
||||
location /api/internal/ {
|
||||
return 404;
|
||||
}
|
||||
location /api/v1/internal/ {
|
||||
return 404;
|
||||
}
|
||||
|
||||
# websocket has special HTTP headers
|
||||
location /api/v1/ws {
|
||||
try_files /dev/null @mempool-api-v1-websocket;
|
||||
|
||||
Reference in New Issue
Block a user