Skip to content

Commit 1f3bc73

Browse files
committed
perf: To jumpserver
1 parent e0d5de1 commit 1f3bc73

135 files changed

Lines changed: 6967 additions & 4709 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ OPENAI_API_KEY=''
1010
# For production, you should only need one host as
1111
# fastapi serves the svelte-kit built frontend and backend from the same host and port.
1212
# To test with CORS locally, you can set something like
13-
# CORS_ALLOW_ORIGIN='http://localhost:5173;http://localhost:8080'
13+
# CORS_ALLOW_ORIGIN='http://localhost:5173;http://localhost:8083'
1414
CORS_ALLOW_ORIGIN='*'
1515

1616
# For production you should set this to match the proxy configuration (127.0.0.1)
@@ -19,4 +19,4 @@ FORWARDED_ALLOW_IPS='*'
1919
# DO NOT TRACK
2020
SCARF_NO_ANALYTICS=true
2121
DO_NOT_TRACK=true
22-
ANONYMIZED_TELEMETRY=false
22+
ANONYMIZED_TELEMETRY=false

.github/ISSUE_TEMPLATE/bug_report.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ body:
143143
3. Clone the Open WebUI repo (git clone ...).
144144
4. Use the Docker Compose file without modifications.
145145
5. Open browser Chrome 115.0 in incognito mode.
146-
6. Go to http://localhost:8080 and log in with user "test@example.com".
146+
6. Go to http://localhost:8083 and log in with user "test@example.com".
147147
7. Set the language to "English" and theme to "Dark".
148148
8. Attempt to connect to Ollama at "http://localhost:11434".
149149
9. Observe that the error message "Connection refused" appears at the top right.

.github/workflows/deploy-to-hf-spaces.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
echo "colorFrom: purple" >> temp_readme.md
4343
echo "colorTo: gray" >> temp_readme.md
4444
echo "sdk: docker" >> temp_readme.md
45-
echo "app_port: 8080" >> temp_readme.md
45+
echo "app_port: 8083" >> temp_readme.md
4646
echo "---" >> temp_readme.md
4747
cat README.md >> temp_readme.md
4848
mv temp_readme.md README.md

.github/workflows/integration-test.disabled

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,11 @@ jobs:
159159
GLOBAL_LOG_LEVEL: debug
160160
run: |
161161
cd backend
162-
uvicorn open_webui.main:app --port "8080" --forwarded-allow-ips '*' &
162+
uvicorn open_webui.main:app --port "8083" --forwarded-allow-ips '*' &
163163
UVICORN_PID=$!
164164
# Wait up to 40 seconds for the server to start
165165
for i in {1..40}; do
166-
curl -s http://localhost:8080/api/config > /dev/null && break
166+
curl -s http://localhost:8083/api/config > /dev/null && break
167167
sleep 1
168168
if [ $i -eq 40 ]; then
169169
echo "Server failed to start"

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG USE_PERMISSION_HARDENING=false
88
# Tested with cu117 for CUDA 11 and cu121 for CUDA 12 (default)
99
ARG USE_CUDA_VER=cu128
1010
# any sentence transformer model; models to use can be found at https://huggingface.co/models?library=sentence-transformers
11-
# Leaderboard: https://huggingface.co/spaces/mteb/leaderboard
11+
# Leaderboard: https://huggingface.co/spaces/mteb/leaderboard
1212
# for better performance and multilangauge support use "intfloat/multilingual-e5-large" (~2.5GB) or "intfloat/multilingual-e5-base" (~1.5GB)
1313
# IMPORTANT: If you change the embedding model (sentence-transformers/all-MiniLM-L6-v2) and vice versa, you aren't able to use RAG Chat with your previous documents loaded in the WebUI! You need to re-embed them.
1414
ARG USE_EMBEDDING_MODEL=sentence-transformers/all-MiniLM-L6-v2
@@ -57,7 +57,7 @@ ARG GID
5757

5858
## Basis ##
5959
ENV ENV=prod \
60-
PORT=8080 \
60+
PORT=8083 \
6161
# pass build args to the build
6262
USE_OLLAMA_DOCKER=${USE_OLLAMA} \
6363
USE_CUDA_DOCKER=${USE_CUDA} \
@@ -167,9 +167,9 @@ COPY --chown=$UID:$GID --from=build /app/package.json /app/package.json
167167
# copy backend files
168168
COPY --chown=$UID:$GID ./backend .
169169

170-
EXPOSE 8080
170+
EXPOSE 8083
171171

172-
HEALTHCHECK CMD curl --silent --fail http://localhost:${PORT:-8080}/health | jq -ne 'input.status == true' || exit 1
172+
HEALTHCHECK CMD curl --silent --fail http://localhost:${PORT:-8083}/health | jq -ne 'input.status == true' || exit 1
173173

174174
# Minimal, atomic permission hardening for OpenShift (arbitrary UID):
175175
# - Group 0 owns /app and /root

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Open WebUI can be installed using pip, the Python package installer. Before proc
8989
open-webui serve
9090
```
9191

92-
This will start the Open WebUI server, which you can access at [http://localhost:8080](http://localhost:8080)
92+
This will start the Open WebUI server, which you can access at [http://localhost:8083](http://localhost:8083)
9393

9494
### Quick Start with Docker 🐳
9595

@@ -107,29 +107,29 @@ This will start the Open WebUI server, which you can access at [http://localhost
107107
- **If Ollama is on your computer**, use this command:
108108

109109
```bash
110-
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
110+
docker run -d -p 3000:8083 --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
111111
```
112112

113113
- **If Ollama is on a Different Server**, use this command:
114114

115115
To connect to Ollama on another server, change the `OLLAMA_BASE_URL` to the server's URL:
116116

117117
```bash
118-
docker run -d -p 3000:8080 -e OLLAMA_BASE_URL=https://example.com -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
118+
docker run -d -p 3000:8083 -e OLLAMA_BASE_URL=https://example.com -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
119119
```
120120

121121
- **To run Open WebUI with Nvidia GPU support**, use this command:
122122

123123
```bash
124-
docker run -d -p 3000:8080 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda
124+
docker run -d -p 3000:8083 --gpus all --add-host=host.docker.internal:host-gateway -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:cuda
125125
```
126126

127127
### Installation for OpenAI API Usage Only
128128

129129
- **If you're only using OpenAI API**, use this command:
130130

131131
```bash
132-
docker run -d -p 3000:8080 -e OPENAI_API_KEY=your_secret_key -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
132+
docker run -d -p 3000:8083 -e OPENAI_API_KEY=your_secret_key -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:main
133133
```
134134

135135
### Installing Open WebUI with Bundled Ollama Support
@@ -140,14 +140,14 @@ This installation method uses a single container image that bundles Open WebUI w
140140
Utilize GPU resources by running the following command:
141141

142142
```bash
143-
docker run -d -p 3000:8080 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama
143+
docker run -d -p 3000:8083 --gpus=all -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama
144144
```
145145

146146
- **For CPU Only**:
147147
If you're not using a GPU, use this command instead:
148148

149149
```bash
150-
docker run -d -p 3000:8080 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama
150+
docker run -d -p 3000:8083 -v ollama:/root/.ollama -v open-webui:/app/backend/data --name open-webui --restart always ghcr.io/open-webui/open-webui:ollama
151151
```
152152

153153
Both commands facilitate a built-in, hassle-free installation of both Open WebUI and Ollama, ensuring that you can get everything up and running swiftly.
@@ -166,7 +166,7 @@ Encountering connection issues? Our [Open WebUI Documentation](https://docs.open
166166

167167
#### Open WebUI: Server Connection Error
168168

169-
If you're experiencing connection issues, it’s often due to the WebUI docker container not being able to reach the Ollama server at 127.0.0.1:11434 (host.docker.internal:11434) inside the container . Use the `--network=host` flag in your docker command to resolve this. Note that the port changes from 3000 to 8080, resulting in the link: `http://localhost:8080`.
169+
If you're experiencing connection issues, it’s often due to the WebUI docker container not being able to reach the Ollama server at 127.0.0.1:11434 (host.docker.internal:11434) inside the container . Use the `--network=host` flag in your docker command to resolve this. Note that the port changes from 3000 to 8083, resulting in the link: `http://localhost:8083`.
170170

171171
**Example Docker Command**:
172172

@@ -194,7 +194,7 @@ Check our Updating Guide available in our [Open WebUI Documentation](https://doc
194194
If you want to try out the latest bleeding-edge features and are okay with occasional instability, you can use the `:dev` tag like this:
195195

196196
```bash
197-
docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui --add-host=host.docker.internal:host-gateway --restart always ghcr.io/open-webui/open-webui:dev
197+
docker run -d -p 3000:8083 -v open-webui:/app/backend/data --name open-webui --add-host=host.docker.internal:host-gateway --restart always ghcr.io/open-webui/open-webui:dev
198198
```
199199

200200
### Offline Mode

TROUBLESHOOTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The Open WebUI system is designed to streamline interactions between the client
1010

1111
## Open WebUI: Server Connection Error
1212

13-
If you're experiencing connection issues, it’s often due to the WebUI docker container not being able to reach the Ollama server at 127.0.0.1:11434 (host.docker.internal:11434) inside the container . Use the `--network=host` flag in your docker command to resolve this. Note that the port changes from 3000 to 8080, resulting in the link: `http://localhost:8080`.
13+
If you're experiencing connection issues, it’s often due to the WebUI docker container not being able to reach the Ollama server at 127.0.0.1:11434 (host.docker.internal:11434) inside the container . Use the `--network=host` flag in your docker command to resolve this. Note that the port changes from 3000 to 8083, resulting in the link: `http://localhost:8083`.
1414

1515
**Example Docker Command**:
1616

backend/dev.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
export CORS_ALLOW_ORIGIN="http://localhost:5173;http://localhost:8080"
2-
PORT="${PORT:-8080}"
1+
export CORS_ALLOW_ORIGIN="http://localhost:5173;http://localhost:8083"
2+
PORT="${PORT:-8083}"
33
uvicorn open_webui.main:app --port $PORT --host 0.0.0.0 --forwarded-allow-ips '*' --reload

backend/open_webui/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def main(
3333
@app.command()
3434
def serve(
3535
host: str = "0.0.0.0",
36-
port: int = 8080,
36+
port: int = 8083,
3737
):
3838
os.environ["FROM_INIT_PY"] = "true"
3939
if os.getenv("WEBUI_SECRET_KEY") is None:
@@ -87,7 +87,7 @@ def serve(
8787
@app.command()
8888
def dev(
8989
host: str = "0.0.0.0",
90-
port: int = 8080,
90+
port: int = 8083,
9191
reload: bool = True,
9292
):
9393
uvicorn.run(

0 commit comments

Comments
 (0)