Feat: location rule for admin UI (#10894)
### What problem does this PR solve? Location rule for admin UI. ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
parent
b52f09adfe
commit
5d79912274
1 changed files with 5 additions and 0 deletions
|
|
@ -22,6 +22,11 @@ server {
|
||||||
gzip_vary on;
|
gzip_vary on;
|
||||||
gzip_disable "MSIE [1-6]\.";
|
gzip_disable "MSIE [1-6]\.";
|
||||||
|
|
||||||
|
location ~ ^/api/v1/admin {
|
||||||
|
proxy_pass http://ragflow:9381;
|
||||||
|
include proxy.conf;
|
||||||
|
}
|
||||||
|
|
||||||
location ~ ^/(v1|api) {
|
location ~ ^/(v1|api) {
|
||||||
proxy_pass http://ragflow:9380;
|
proxy_pass http://ragflow:9380;
|
||||||
include proxy.conf;
|
include proxy.conf;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue