mirror of https://github.com/open-webui/open-webui
fix: reword WEBUI_SECRET_KEY generation log line
This commit is contained in:
parent
9c190b56ae
commit
ceecfb66a5
|
@ -8,7 +8,7 @@ KEY_FILE=.webui_secret_key
|
||||||
PORT="${PORT:-8080}"
|
PORT="${PORT:-8080}"
|
||||||
HOST="${HOST:-0.0.0.0}"
|
HOST="${HOST:-0.0.0.0}"
|
||||||
if test "$WEBUI_SECRET_KEY $WEBUI_JWT_SECRET_KEY" = " "; then
|
if test "$WEBUI_SECRET_KEY $WEBUI_JWT_SECRET_KEY" = " "; then
|
||||||
echo "No WEBUI_SECRET_KEY provided"
|
echo "Loading WEBUI_SECRET_KEY from file, not provided as an environment variable."
|
||||||
|
|
||||||
if ! [ -e "$KEY_FILE" ]; then
|
if ! [ -e "$KEY_FILE" ]; then
|
||||||
echo "Generating WEBUI_SECRET_KEY"
|
echo "Generating WEBUI_SECRET_KEY"
|
||||||
|
|
|
@ -13,7 +13,7 @@ SET "WEBUI_JWT_SECRET_KEY=%WEBUI_JWT_SECRET_KEY%"
|
||||||
|
|
||||||
:: Check if WEBUI_SECRET_KEY and WEBUI_JWT_SECRET_KEY are not set
|
:: Check if WEBUI_SECRET_KEY and WEBUI_JWT_SECRET_KEY are not set
|
||||||
IF "%WEBUI_SECRET_KEY%%WEBUI_JWT_SECRET_KEY%" == " " (
|
IF "%WEBUI_SECRET_KEY%%WEBUI_JWT_SECRET_KEY%" == " " (
|
||||||
echo No WEBUI_SECRET_KEY provided
|
echo Loading WEBUI_SECRET_KEY from file, not provided as an environment variable.
|
||||||
|
|
||||||
IF NOT EXIST "%KEY_FILE%" (
|
IF NOT EXIST "%KEY_FILE%" (
|
||||||
echo Generating WEBUI_SECRET_KEY
|
echo Generating WEBUI_SECRET_KEY
|
||||||
|
|
Loading…
Reference in New Issue