events { worker_connections 1024; } http { server { listen 7860; listen 7861; location / { root /home/user/app/docauth; } location /healthcheck { proxy_pass http://127.0.0.1:4000/healthcheck; } location /inference/api/v1/ { proxy_pass http://127.0.0.1:4000; } location /v1/embeddings { proxy_pass http://127.0.0.1:8081; } location /v1 { proxy_pass http://127.0.0.1:8082; } location /api/license-key { default_type application/json; return 200 '{"licenseKey": "$DOCAUTH_LICENSE_KEY"}'; } } }