mirror of
https://github.com/langgenius/dify.git
synced 2026-05-09 12:59:18 +08:00
fix(nginx): route /openapi to api backend
Phase F removed legacy /v1/oauth/device/* and /console/api/oauth/device/* mounts in favour of /openapi/v1. Without this rule /openapi falls through to location / and proxies to web:3000, returning 404 for every API call.
This commit is contained in:
parent
0b3b0b5ce8
commit
d98fe7916a
@ -27,6 +27,11 @@ server {
|
||||
include proxy.conf;
|
||||
}
|
||||
|
||||
location /openapi {
|
||||
proxy_pass http://api:5001;
|
||||
include proxy.conf;
|
||||
}
|
||||
|
||||
location /files {
|
||||
proxy_pass http://api:5001;
|
||||
include proxy.conf;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user