File tree Expand file tree Collapse file tree 4 files changed +74
-0
lines changed
Expand file tree Collapse file tree 4 files changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ server {
2+ listen 80;
3+ server_name example.com localhost;
4+
5+ return 301 https://$host$request_uri;
6+ }
7+
8+ server {
9+ listen 443 ssl;
10+ server_name example.com localhost;
11+
12+ ssl_certificate /etc/nginx/ssl/fullchain.pem;
13+ ssl_certificate_key /etc/nginx/ssl/privkey.pem;
14+
15+ location / {
16+ proxy_pass http://open-webui:8080;
17+
18+ # Add WebSocket support
19+ proxy_http_version 1.1;
20+ proxy_set_header Upgrade $http_upgrade;
21+ proxy_set_header Connection "upgrade";
22+
23+ proxy_set_header Host $host;
24+ proxy_set_header X-Real-IP $remote_addr;
25+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
26+ proxy_set_header X-Forwarded-Proto $scheme;
27+
28+ # Disable proxy buffering for better streaming response from models
29+ proxy_buffering off;
30+ }
31+ }
32+
Original file line number Diff line number Diff line change 1+ version : ' 3.8'
2+
3+ services :
4+ ollama :
5+ image : ollama/ollama
6+ container_name : ollama
7+ restart : unless-stopped
8+ gpus : all
9+ volumes :
10+ - ollama:/root/.ollama
11+
12+ open-webui :
13+ image : ghcr.io/open-webui/open-webui:main
14+ container_name : open-webui
15+ restart : unless-stopped
16+ depends_on :
17+ - ollama
18+ volumes :
19+ - open-webui:/app/backend/data
20+ environment :
21+ - OLLAMA_BASE_URL=http://ollama:11434
22+
23+ https-nginx :
24+ image : nginx
25+ container_name : https-reverse-proxy
26+ restart : unless-stopped
27+ depends_on :
28+ - open-webui
29+ ports :
30+ - 80:80
31+ - 443:443
32+ volumes :
33+ - ./default.conf:/etc/nginx/conf.d/default.conf:ro
34+ - ./ssl:/etc/nginx/ssl:ro
35+
36+ volumes :
37+ ollama :
38+ external : true
39+ open-webui :
40+ external : true
Original file line number Diff line number Diff line change 1+ Public Key TEST
Original file line number Diff line number Diff line change 1+ Private key TEST
You can’t perform that action at this time.
0 commit comments