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
c1942984
Commit
c1942984
authored
Apr 27, 2024
by
Jun Siang Cheah
Browse files
feat: add HOST to the backend start script
parent
f8f9f27a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
backend/start.sh
backend/start.sh
+2
-1
No files found.
backend/start.sh
View file @
c1942984
...
...
@@ -6,6 +6,7 @@ cd "$SCRIPT_DIR" || exit
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"
...
...
@@ -29,4 +30,4 @@ if [ "$USE_CUDA_DOCKER" = "true" ]; then
export
LD_LIBRARY_PATH
=
"
$LD_LIBRARY_PATH
:/usr/local/lib/python3.11/site-packages/torch/lib:/usr/local/lib/python3.11/site-packages/nvidia/cudnn/lib"
fi
WEBUI_SECRET_KEY
=
"
$WEBUI_SECRET_KEY
"
exec
uvicorn main:app
--host
0.0.0.0
--port
"
$PORT
"
--forwarded-allow-ips
'*'
WEBUI_SECRET_KEY
=
"
$WEBUI_SECRET_KEY
"
exec
uvicorn main:app
--host
"
$HOST
"
--port
"
$PORT
"
--forwarded-allow-ips
'*'
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