Spaces:
Runtime error
Runtime error
File size: 733 Bytes
db9f671 e27f03b d4f99c0 e7c6240 d4f99c0 da9dd3b d4f99c0 e27f03b 4bfe637 e7c6240 e27f03b bd58e89 b778f8d db9f671 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 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 /api/license-key {
default_type application/json;
return 200 '{"licenseKey": "$DOCAUTH_LICENSE_KEY"}';
}
location /api/auth-token {
proxy_pass http://localhost:4001/auth-token;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
}
|