Route /api and /<network/api URLs to HTML for API documentation

This commit is contained in:
wiz 2020-10-18 13:11:02 +09:00
parent fb9b3202ca
commit 2c3f425797
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -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;