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
a63507c2
"git@developer.sourcefind.cn:OpenDAS/nni.git" did not exist on "39782f1209f0855f49318b9e0fa042fdcf45ba7f"
Commit
a63507c2
authored
Jan 11, 2024
by
Anuraag Jain
Browse files
feat: custom port for server
parent
5c5bde3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
backend/dev.sh
backend/dev.sh
+2
-1
backend/start.sh
backend/start.sh
+2
-1
No files found.
backend/dev.sh
View file @
a63507c2
uvicorn main:app
--port
8080
--host
0.0.0.0
--forwarded-allow-ips
'*'
--reload
SERVER_PORT
=
"
${
SERVER_PORT
:-
8080
}
"
\ No newline at end of file
uvicorn main:app
--port
$SERVER_PORT
--host
0.0.0.0
--forwarded-allow-ips
'*'
--reload
\ No newline at end of file
backend/start.sh
View file @
a63507c2
#!/usr/bin/env bash
#!/usr/bin/env bash
uvicorn main:app
--host
0.0.0.0
--port
8080
--forwarded-allow-ips
'*'
SERVER_PORT
=
"
${
SERVER_PORT
:-
8080
}
"
uvicorn main:app
--host
0.0.0.0
--port
$SERVER_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