From 01817478810a5bd53af7a11a53691e8b9930c658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20L=C3=B3pez=20Carrascal?= Date: Mon, 24 Nov 2025 03:21:27 +0100 Subject: [PATCH] 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. --- docker/nginx/ragflow.https.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/nginx/ragflow.https.conf b/docker/nginx/ragflow.https.conf index 71cd241e7..2ef4cd005 100644 --- a/docker/nginx/ragflow.https.conf +++ b/docker/nginx/ragflow.https.conf @@ -23,12 +23,12 @@ server { gzip_disable "MSIE [1-6]\."; location ~ ^/api/v1/admin { - proxy_pass http://ragflow:9381; + proxy_pass http://localhost:9381; include proxy.conf; } location ~ ^/(v1|api) { - proxy_pass http://ragflow:9380; + proxy_pass http://localhost:9380; include proxy.conf; }