Files
aitbc/apps/blockchain-explorer/nginx.conf
oib 15427c96c0 chore: update file permissions to executable across repository
- Change file mode from 644 to 755 for all project files
- Add chain_id parameter to get_balance RPC endpoint with default "ait-devnet"
- Rename Miner.extra_meta_data to extra_metadata for consistency
2026-03-06 22:17:54 +01:00

32 lines
750 B
Nginx Configuration File
Executable File

server {
listen 3000;
server_name _;
root /opt/blockchain-explorer;
index index.html;
# API proxy - standardize endpoints
location /api/v1/ {
proxy_pass http://localhost:8082/rpc/;
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;
}
# Legacy API compatibility
location /rpc {
return 307 /api/v1$uri?$args;
}
# Static files
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# SPA fallback
location / {
try_files $uri $uri/ /index.html;
}
}