1
0

Add Mempool Explorer

This commit is contained in:
Kukks
2021-08-30 14:41:43 +02:00
committed by Dennis Reimann
parent 58ab26b58b
commit 110c1caa01
3 changed files with 108 additions and 4 deletions

View File

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