mirror of
https://github.com/mempool/mempool.git
synced 2026-08-20 13:28:00 +02:00
Nginx: Ignore all internal-api paths
This commit is contained in:
parent
1e69f3b331
commit
511b827bf5
2 changed files with 10 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue