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
6d6d5b4d
Unverified
Commit
6d6d5b4d
authored
Jan 12, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Jan 12, 2024
Browse files
Merge pull request #454 from anuraagdjain/feat/custom-server-port
feat: custom port for server
parents
ed4b3e0b
0e039492
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
Dockerfile
Dockerfile
+1
-0
backend/dev.sh
backend/dev.sh
+2
-1
backend/start.sh
backend/start.sh
+2
-1
No files found.
Dockerfile
View file @
6d6d5b4d
...
...
@@ -17,6 +17,7 @@ RUN npm run build
FROM
python:3.11-slim-bookworm as base
ENV
ENV=prod
ENV
PORT ""
ENV
OLLAMA_API_BASE_URL "/ollama/api"
...
...
backend/dev.sh
View file @
6d6d5b4d
uvicorn main:app
--port
8080
--host
0.0.0.0
--forwarded-allow-ips
'*'
--reload
\ No newline at end of file
PORT
=
"
${
PORT
:-
8080
}
"
uvicorn main:app
--port
$PORT
--host
0.0.0.0
--forwarded-allow-ips
'*'
--reload
\ No newline at end of file
backend/start.sh
View file @
6d6d5b4d
#!/usr/bin/env bash
uvicorn main:app
--host
0.0.0.0
--port
8080
--forwarded-allow-ips
'*'
PORT
=
"
${
PORT
:-
8080
}
"
uvicorn main:app
--host
0.0.0.0
--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