Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing not-working Nginx config #372

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion docs/tutorials/integrations/tab-nginx/SelfSigned.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Using self-signed certificates is suitable for development or internal use where
**`conf.d/open-webui.conf`:**

```nginx
server {
listen 80 default_server;
server_name _;
return 301 https://$host$request_uri;
}

server {
listen 443 ssl;
server_name your_domain_or_IP;
Expand All @@ -25,11 +31,13 @@ Using self-signed certificates is suitable for development or internal use where
ssl_protocols TLSv1.2 TLSv1.3;

location / {
proxy_pass http://host.docker.internal:3000;
proxy_pass http://host.docker.internal:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";

# (Optional) Disable proxy buffering for better streaming response from models
proxy_buffering off;
Expand All @@ -54,11 +62,14 @@ Using self-signed certificates is suitable for development or internal use where
services:
nginx:
image: nginx:alpine
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./conf.d:/etc/nginx/conf.d
- ./ssl:/etc/nginx/ssl
restart: unless-stopped
depends_on:
- open-webui
```
Expand Down