Skip to content

Commit 5208b98

Browse files
authored
fix: proxy /api to backend for eth_getBalance (#53)
1 parent 7dc097f commit 5208b98

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frontend/nginx.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,12 @@ server {
4141
proxy_set_header X-Real-IP $remote_addr;
4242
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
4343
}
44+
45+
# Etherscan-compatible API (exact /api path with query params, no trailing slash)
46+
location = /api {
47+
proxy_pass http://atlas-server:3000/api;
48+
proxy_set_header Host $host;
49+
proxy_set_header X-Real-IP $remote_addr;
50+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
51+
}
4452
}

0 commit comments

Comments
 (0)