fifth-domain/server-tools/ai-discovery-gateway/guanghu-ai-discovery.nginx.conf

17 lines
499 B
Plaintext
Raw Normal View History

location /api/ai/ {
proxy_pass http://127.0.0.1:19222/;
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;
proxy_connect_timeout 5s;
proxy_read_timeout 30s;
limit_except GET { deny all; }
}
location = /.well-known/guanghu.json {
proxy_pass http://127.0.0.1:19222/well-known;
proxy_set_header Host $host;
}