Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
421a964a
Unverified
Commit
421a964a
authored
May 08, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
May 08, 2024
Browse files
Merge pull request #2082 from cheahjs/fix/reword-secret-key
fix: reword WEBUI_SECRET_KEY generation log line
parents
9c190b56
ceecfb66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
backend/start.sh
backend/start.sh
+1
-1
backend/start_windows.bat
backend/start_windows.bat
+1
-1
No files found.
backend/start.sh
View file @
421a964a
...
...
@@ -8,7 +8,7 @@ KEY_FILE=.webui_secret_key
PORT
=
"
${
PORT
:-
8080
}
"
HOST
=
"
${
HOST
:-
0
.0.0.0
}
"
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
echo
"Generating WEBUI_SECRET_KEY"
...
...
backend/start_windows.bat
View file @
421a964a
...
...
@@ -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
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%
"
(
echo
Generating
WEBUI_SECRET_KEY
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment