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
0e039492
Commit
0e039492
authored
Jan 12, 2024
by
Timothy J. Baek
Browse files
refac: SERVER_PORT renamed to PORT
parent
a63507c2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
Dockerfile
Dockerfile
+1
-0
backend/dev.sh
backend/dev.sh
+2
-2
backend/start.sh
backend/start.sh
+2
-2
No files found.
Dockerfile
View file @
0e039492
...
@@ -17,6 +17,7 @@ RUN npm run build
...
@@ -17,6 +17,7 @@ RUN npm run build
FROM
python:3.11-slim-bookworm as base
FROM
python:3.11-slim-bookworm as base
ENV
ENV=prod
ENV
ENV=prod
ENV
PORT ""
ENV
OLLAMA_API_BASE_URL "/ollama/api"
ENV
OLLAMA_API_BASE_URL "/ollama/api"
...
...
backend/dev.sh
View file @
0e039492
SERVER_PORT
=
"
${
SERVER_PORT
:-
8080
}
"
PORT
=
"
${
PORT
:-
8080
}
"
uvicorn main:app
--port
$SERVER_PORT
--host
0.0.0.0
--forwarded-allow-ips
'*'
--reload
uvicorn main:app
--port
$PORT
--host
0.0.0.0
--forwarded-allow-ips
'*'
--reload
\ No newline at end of file
\ No newline at end of file
backend/start.sh
View file @
0e039492
#!/usr/bin/env bash
#!/usr/bin/env bash
SERVER_
PORT
=
"
${
SERVER_
PORT
:-
8080
}
"
PORT
=
"
${
PORT
:-
8080
}
"
uvicorn main:app
--host
0.0.0.0
--port
$
SERVER_
PORT
--forwarded-allow-ips
'*'
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