- Remove executable permissions from configuration files (.editorconfig, .env.example, .gitignore) - Remove executable permissions from documentation files (README.md, LICENSE, SECURITY.md) - Remove executable permissions from web assets (HTML, CSS, JS files) - Remove executable permissions from data files (JSON, SQL, YAML, requirements.txt) - Remove executable permissions from source code files across all apps - Add executable permissions to Python
32 lines
750 B
Nginx Configuration File
32 lines
750 B
Nginx Configuration 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;
|
|
}
|
|
}
|