mirror of
https://github.com/mempool/mempool.git
synced 2025-01-18 05:12:35 +01:00
Route /api and /<network/api URLs to HTML for API documentation
This commit is contained in:
parent
fb9b3202ca
commit
2c3f425797
@ -113,6 +113,12 @@ http {
|
||||
|
||||
# /api
|
||||
|
||||
location = /api {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
location = /api/ {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
location /api/v1/ws {
|
||||
proxy_pass http://127.0.0.1:8999/;
|
||||
proxy_http_version 1.1;
|
||||
@ -131,6 +137,12 @@ http {
|
||||
|
||||
# /mainnet/api
|
||||
|
||||
location = /mainnet/api {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
location = /mainnet/api/ {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
location /mainnet/api/v1/ws {
|
||||
proxy_pass http://127.0.0.1:8999/;
|
||||
proxy_http_version 1.1;
|
||||
@ -149,6 +161,12 @@ http {
|
||||
|
||||
# /liquid/api
|
||||
|
||||
location = /liquid/api {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
location = /liquid/api/ {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
location /liquid/api/v1/ws {
|
||||
proxy_pass http://127.0.0.1:8998/;
|
||||
proxy_http_version 1.1;
|
||||
@ -167,6 +185,12 @@ http {
|
||||
|
||||
# /testnet/api
|
||||
|
||||
location = /testnet/api {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
location = /testnet/api/ {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
location /testnet/api/v1/ws {
|
||||
proxy_pass http://127.0.0.1:8997/;
|
||||
proxy_http_version 1.1;
|
||||
@ -185,6 +209,12 @@ http {
|
||||
|
||||
# /bisq
|
||||
|
||||
location = /bisq/api {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
location = /bisq/api/ {
|
||||
try_files $uri $uri/ /index.html =404;
|
||||
}
|
||||
location /bisq/api/v1/ws {
|
||||
proxy_pass http://127.0.0.1:8996/;
|
||||
proxy_http_version 1.1;
|
||||
|
Loading…
Reference in New Issue
Block a user