"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "ac3c6573156d3ac8b9a28ca8b751de7f28d8cd44"
Unverified Commit 6d6d5b4d authored by Timothy Jaeryang Baek's avatar Timothy Jaeryang Baek Committed by GitHub
Browse files

Merge pull request #454 from anuraagdjain/feat/custom-server-port

feat: custom port for server
parents ed4b3e0b 0e039492
......@@ -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"
......
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
#!/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 '*'
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment