feat: remove rewrite configuration from nginx proxy
This commit is contained in:
parent
a4e038310e
commit
88b2e7e95d
1 changed files with 4 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue