Freshness diagnostics API, UI trust notes, mission control/stats updates, and deploy scripts.
Made-with: Cursor
This commit is contained in:
@@ -1,5 +1,22 @@
|
||||
# Generic snippet: proxy /api/ to a backend (Blockscout, Go API, etc.)
|
||||
# Include in your server block. Replace upstream host/port as needed.
|
||||
#
|
||||
# Keep the exact /api/v2/stats route on the Go-side explorer API when you need
|
||||
# enriched freshness/completeness metadata while the rest of /api/v2/* stays on
|
||||
# the Blockscout upstream.
|
||||
|
||||
location = /api/v2/stats {
|
||||
proxy_pass http://127.0.0.1:8081/api/v2/stats;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_read_timeout 60s;
|
||||
add_header Access-Control-Allow-Origin *;
|
||||
add_header Access-Control-Allow-Methods "GET, POST, OPTIONS";
|
||||
add_header Access-Control-Allow-Headers "Content-Type";
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:4000;
|
||||
|
||||
Reference in New Issue
Block a user