Phase 13 Completion: - Add ZK-Rollup Docker infrastructure (sequencer, provers, gateway) - Create zk-sequencer binary with health checks and metrics - Add docker-compose.zk.yml for full ZK stack deployment - Include nginx gateway and Prometheus monitoring configs Integration Tests: - Add comprehensive Phase 13 integration test suite - Cover DAGKnight, quantum crypto, ZK-rollup, gateway tests - All 149 tests passing (39 DAG + 45 crypto + 25 ZK + 40 storage) Phase 14 Planning: - Document 4-milestone roadmap (20 weeks) - M1: Cross-chain IBC interoperability - M2: Privacy layer (RingCT, stealth addresses) - M3: Sharding protocol (100K TPS target) - M4: Developer tooling (formal verification, Hardhat) Docker Services: - synor-zk-sequencer: API port 3001, prover RPC 3002, metrics 9001 - synor-zk-prover-1/2: Dedicated proof generation workers - synor-zk-gateway: nginx API gateway port 3080 - synor-zk-prometheus: Metrics collection port 9090
37 lines
963 B
Nginx Configuration File
37 lines
963 B
Nginx Configuration File
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
upstream zk_sequencer {
|
|
server zk-sequencer:3001;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
location /health {
|
|
return 200 'OK';
|
|
add_header Content-Type text/plain;
|
|
}
|
|
|
|
location /api/ {
|
|
proxy_pass http://zk_sequencer/;
|
|
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;
|
|
|
|
# CORS headers
|
|
add_header 'Access-Control-Allow-Origin' '*';
|
|
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS';
|
|
add_header 'Access-Control-Allow-Headers' 'Content-Type';
|
|
}
|
|
|
|
location /metrics {
|
|
proxy_pass http://zk-sequencer:9001/metrics;
|
|
}
|
|
}
|
|
}
|