From f3eae794ace20d10edc4e970ce6258a47fb3b4d9 Mon Sep 17 00:00:00 2001 From: ben Date: Sat, 4 Mar 2023 22:22:22 +0100 Subject: Remove STT feature (not fully offline) --- src/nginx/nginx.conf | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src') diff --git a/src/nginx/nginx.conf b/src/nginx/nginx.conf index 5e411a9..fa4cb13 100644 --- a/src/nginx/nginx.conf +++ b/src/nginx/nginx.conf @@ -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; -- cgit v1.2.3