v87: nginx /ws location для lang.kube5s.ru
This commit is contained in:
@@ -13,7 +13,6 @@ server {
|
||||
ssl_certificate /etc/letsencrypt/live/lang.kube5s.ru/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/lang.kube5s.ru/privkey.pem;
|
||||
|
||||
# DPI bypass: не даём буферизировать тело запроса
|
||||
client_body_timeout 120s;
|
||||
client_body_buffer_size 128k;
|
||||
|
||||
@@ -24,7 +23,7 @@ server {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# Groq API proxy
|
||||
# Groq API proxy (multipart POST)
|
||||
location /openai/ {
|
||||
proxy_pass http://127.0.0.1:8765;
|
||||
proxy_http_version 1.1;
|
||||
@@ -34,6 +33,16 @@ server {
|
||||
proxy_request_buffering off;
|
||||
}
|
||||
|
||||
# Groq Whisper WebSocket (DPI-proof — base64 чанки)
|
||||
location /ws {
|
||||
proxy_pass http://127.0.0.1:8766;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_read_timeout 120s;
|
||||
proxy_send_timeout 120s;
|
||||
}
|
||||
|
||||
# Будущий бэкенд (Python/Go)
|
||||
location /api/ {
|
||||
proxy_pass http://127.0.0.1:8080;
|
||||
|
||||
Reference in New Issue
Block a user