document-translation / nginx.conf
dmartincy's picture
Revert "Call HF directly"
8c66f34
Raw
History Blame Contribute Delete
733 Bytes
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;
}
}
}