Remove STT feature (not fully offline)
This commit is contained in:
@@ -46,27 +46,6 @@ http {
|
||||
if ($deny) {
|
||||
return 403;
|
||||
}
|
||||
location / {
|
||||
proxy_pass http://faster-whisper-server:8000;
|
||||
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_read_timeout 180;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
server {
|
||||
listen 8002;
|
||||
set $deny 1;
|
||||
if ($http_authorization = "Bearer $API_KEY") {
|
||||
set $deny 0;
|
||||
}
|
||||
if ($deny) {
|
||||
return 403;
|
||||
}
|
||||
location / {
|
||||
proxy_pass http://aichat:8000;
|
||||
proxy_set_header Host $host;
|
||||
|
||||
Reference in New Issue
Block a user