mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Fix nginx startup failure in HTTPS mode (host not found) (#11455)
### Description This PR fixes a bug where Nginx fails to start when using the `ragflow.https.conf` configuration. The upstream host `ragflow` was not resolving correctly inside the container context, causing an `[emerg] host not found` error. ### Changes - Updated `docker/nginx/ragflow.https.conf`: Changed upstream host from `ragflow` to `localhost` for both the admin API and the main API. ### Related Issue Fixes #11453 ### Testing - [x] Enabled HTTPS config in Docker. - [x] Verified Nginx starts successfully without "host not found" errors. - [x] Verified API accessibility.
This commit is contained in:
committed by
GitHub
parent
3c41159d26
commit
0181747881
@ -23,12 +23,12 @@ server {
|
|||||||
gzip_disable "MSIE [1-6]\.";
|
gzip_disable "MSIE [1-6]\.";
|
||||||
|
|
||||||
location ~ ^/api/v1/admin {
|
location ~ ^/api/v1/admin {
|
||||||
proxy_pass http://ragflow:9381;
|
proxy_pass http://localhost:9381;
|
||||||
include proxy.conf;
|
include proxy.conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
location ~ ^/(v1|api) {
|
location ~ ^/(v1|api) {
|
||||||
proxy_pass http://ragflow:9380;
|
proxy_pass http://localhost:9380;
|
||||||
include proxy.conf;
|
include proxy.conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user