Websocket support for open-webui

This commit is contained in:
Random936 2025-05-04 14:58:50 -07:00
parent e0a8ac3e07
commit 9253338555

View File

@ -51,8 +51,19 @@
'';
locations."/".extraConfig = ''
proxy_buffering off;
proxy_pass http://localhost:8080/;
# Add WebSocket support (Necessary for version 0.5.0 and up)
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
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_buffering off;
'';
};
};