feat: remove rewrite configuration from nginx proxy

This commit is contained in:
billchen 2024-02-29 10:32:21 +08:00
parent a4e038310e
commit 88b2e7e95d

View file

@ -1,11 +1,10 @@
upstream api_service {
server ragflow:9380;
keepalive 2000;
}
server {
listen 80;
server_name ragflow.io;
listen 8088;
# server_name xxx.io;
# gzip config
gzip on;
@ -35,12 +34,7 @@ server {
}
# api proxy
location ^~/v1 {
rewrite ^/v1/(.*)$ /$1 break;
proxy_pass http://api_service/;
proxy_set_header Host $http_host;
proxy_set_header Connection close;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
location /v1 {
proxy_pass http://api_service;
}
}