Files
zeekay 8798c5c499 Add comprehensive nginx configurations for all services
- Add explorer frontend configs for all networks (explore.*.network)
- Add explorer API configs for all networks (api-explore.*.network)
- Add Graph Protocol configs (graph.lux.network, graph.zoo.network)
- Add IPFS gateway configs (ipfs.lux.network, ipfs.zoo.network)
- Add stats service configs for all networks
- Add visualizer configs for all networks
- Add signature provider configs for all networks
- Fix port mappings to match running Docker containers
- Update stats.lux.network to use correct port (8050 instead of 8053)
- Update viz.lux.network to use correct port (8052 instead of 8050)
- Add TODO comment for Hanzo blockchain ID (network not deployed yet)
- Enable CORS headers on all API endpoints
- Configure WebSocket support where needed
- Set appropriate timeouts for different service types
2025-07-30 20:32:45 +00:00

29 lines
1.1 KiB
SYSTEMD

# Hanzo Network Stats
server {
listen 8080;
listen [::]:8080;
server_name stats.hanzo.network;
location / {
if ($request_method = 'OPTIONS') {
add_header 'Access-Control-Allow-Origin' 'https://explore.hanzo.network' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' '*' always;
add_header 'Access-Control-Max-Age' 1728000;
add_header 'Content-Type' 'text/plain charset=UTF-8';
add_header 'Content-Length' 0;
return 204;
}
add_header 'Access-Control-Allow-Origin' 'https://explore.hanzo.network' always;
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS' always;
add_header 'Access-Control-Allow-Headers' '*' always;
proxy_pass http://127.0.0.1:8453;
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;
}
}