diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 5e4aa1b..98afe1b 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -40,4 +40,12 @@ server { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } + + # Etherscan-compatible API (exact /api path with query params, no trailing slash) + location = /api { + proxy_pass http://atlas-server:3000/api; + proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + } }