forked from open-webui/open-webui
Merge pull request #454 from anuraagdjain/feat/custom-server-port
feat: custom port for server
This commit is contained in:
commit
6d6d5b4d0d
3 changed files with 5 additions and 2 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
uvicorn main:app --port 8080 --host 0.0.0.0 --forwarded-allow-ips '*' --reload
|
PORT="${PORT:-8080}"
|
||||||
|
uvicorn main:app --port $PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload
|
|
@ -1,3 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/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 '*'
|
||||||
|
|
Loading…
Reference in a new issue