ticket #70 attempt 1

This commit is contained in:
Typosaurus
2026-07-19 18:46:25 +00:00
parent 818568c609
commit 4026e3e1a8
977 changed files with 234309 additions and 0 deletions
+19
View File
@@ -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;