aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nginx/nginx.conf21
1 files changed, 0 insertions, 21 deletions
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
@@ -47,27 +47,6 @@ http {
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;
proxy_set_header X-Real-IP $remote_addr;