Add Mempool Explorer
This commit is contained in:
@@ -191,8 +191,8 @@
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_pass http://configurator;
|
||||
}
|
||||
{{ end }}
|
||||
{{ if (eq $serviceName "nnostr-relay") }}
|
||||
{{ end }}
|
||||
{{ if (eq $serviceName "nnostr-relay") }}
|
||||
location /nostr/ {
|
||||
proxy_set_header Connection "";
|
||||
proxy_set_header Host $host;
|
||||
@@ -207,7 +207,42 @@
|
||||
proxy_set_header Connection "Upgrade";
|
||||
proxy_pass http://nnostr-relay;
|
||||
}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if (eq $serviceName "mempool_web") }}
|
||||
location /mempool/ {
|
||||
proxy_pass http://mempool_web:8080;
|
||||
|
||||
# static API docs
|
||||
location = /api {
|
||||
try_files $uri $uri/ /en-US/index.html =404;
|
||||
}
|
||||
location = /api/ {
|
||||
try_files $uri $uri/ /en-US/index.html =404;
|
||||
}
|
||||
|
||||
# mainnet API
|
||||
location /api/v1/ws {
|
||||
proxy_pass http://mempool_api:8999/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
}
|
||||
location /api/v1 {
|
||||
proxy_pass http://mempool_api:8999/api/v1;
|
||||
}
|
||||
location /api/ {
|
||||
proxy_pass http://mempool_api:8999/api/v1/;
|
||||
}
|
||||
|
||||
# mainnet API
|
||||
location /ws {
|
||||
proxy_pass http://mempool_api:8999/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "Upgrade";
|
||||
}
|
||||
}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user