chore: refactor logging module, update genesis timestamp, remove model relationships, and reorganize routers - Rename logging.py to logger.py and update import paths in poa.py and main.py - Update devnet genesis timestamp to 1766828620 - Remove SQLModel Relationship declarations from Block, Transaction, and Receipt models - Add SessionDep type alias and get_session dependency in coordinator-api deps - Reorganize coordinator-api routers: replace explorer/registry with exchange, users, marketplace
64 lines
1.9 KiB
Plaintext
64 lines
1.9 KiB
Plaintext
# Local nginx configuration for AITBC domain testing
|
|
# Save as /etc/nginx/sites-available/aitbc-local
|
|
|
|
server {
|
|
listen 80;
|
|
server_name aitbc.bubuit.net localhost;
|
|
|
|
# API routes
|
|
location /api/ {
|
|
proxy_pass http://127.0.0.1:8000/v1/;
|
|
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;
|
|
}
|
|
|
|
# Admin routes
|
|
location /admin/ {
|
|
proxy_pass http://127.0.0.1:8000/admin/;
|
|
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;
|
|
}
|
|
|
|
# Blockchain RPC
|
|
location /rpc/ {
|
|
proxy_pass http://127.0.0.1:9080/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;
|
|
}
|
|
|
|
# Marketplace UI
|
|
location /Marketplace {
|
|
proxy_pass http://127.0.0.1:3001/;
|
|
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;
|
|
}
|
|
|
|
# Trade Exchange
|
|
location /Exchange {
|
|
proxy_pass http://127.0.0.1:3002/;
|
|
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;
|
|
}
|
|
|
|
# Health endpoint
|
|
location /health {
|
|
proxy_pass http://127.0.0.1:8000/v1/health;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
# Default redirect
|
|
location / {
|
|
return 301 /Marketplace;
|
|
}
|
|
}
|