forked from retoor/devplacepy
ticket #70 attempt 1
This commit is contained in:
@@ -193,6 +193,25 @@ server {
|
||||
proxy_send_timeout 120s;
|
||||
}
|
||||
|
||||
# OpenAI gateway (/openai): restricted to localhost only. This is an
|
||||
# internal-facing LLM gateway that should never be reachable from the
|
||||
# public internet.
|
||||
location /openai/ {
|
||||
allow 127.0.0.1;
|
||||
allow ::1;
|
||||
deny all;
|
||||
proxy_pass http://app;
|
||||
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_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_connect_timeout 30s;
|
||||
proxy_read_timeout 60s;
|
||||
proxy_send_timeout 60s;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://app;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in New Issue
Block a user