worker_processes 1; events { worker_connections 1024; } http { client_max_body_size 100M; server { listen 7860; # Route to BioLogic (Node.js) on port 7861 location /biologic/ { proxy_pass http://127.0.0.1:7861/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } # Route to audio_server (Python FastAPI) on port 7862 location /audio/ { proxy_pass http://127.0.0.1:7862/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } # Route to cipher_sticker (Python Flask) on port 7863 location /cipher/ { proxy_pass http://127.0.0.1:7863/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } # Route to math_scan (Python FastAPI) on port 7864 location /math/ { proxy_pass http://127.0.0.1:7864/; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } location / { return 200 'Cipher-MD API Bundle Running! Paths: /biologic/, /audio/, /cipher/, /math/'; add_header Content-Type text/plain; } } }