mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-06 02:07:49 +08:00
Use different API route according the ENV (#13597)
### What problem does this PR solve? 1. Fix go server date precision 2. Use API_SCHEME_PROXY to control the web API route ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@ -230,7 +230,11 @@ if [[ "${ENABLE_WEBSERVER}" -eq 1 ]]; then
|
||||
echo "Starting ragflow_server..."
|
||||
while true; do
|
||||
"$PY" api/ragflow_server.py ${INIT_SUPERUSER_ARGS} &
|
||||
bin/server_main &
|
||||
|
||||
if [[ "${API_PROXY_SCHEME}" == "hybrid" ]]; then
|
||||
echo "Starting RAGFlow server in hybrid mode..."
|
||||
bin/server_main &
|
||||
fi
|
||||
wait;
|
||||
sleep 1;
|
||||
done &
|
||||
@ -249,7 +253,10 @@ if [[ "${ENABLE_ADMIN_SERVER}" -eq 1 ]]; then
|
||||
echo "Starting admin_server..."
|
||||
while true; do
|
||||
"$PY" admin/server/admin_server.py &
|
||||
bin/admin_server &
|
||||
if [[ "${API_PROXY_SCHEME}" == "hybrid" ]]; then
|
||||
echo "Starting Admin server in hybrid mode..."
|
||||
bin/admin_server &
|
||||
fi
|
||||
wait;
|
||||
sleep 1;
|
||||
done &
|
||||
|
||||
Reference in New Issue
Block a user