Open-WebUI ; Issues with Nginx proxy #51
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
So trying to use it with redis isn't working causes weird json error.
Also ordered p100 to go with the server later. Gotta figure out how to code it into the docker file too
open-webui appears to be logging in according to console logs, the screen just isn't wanting to load
notifications get through, but still not loading web page.
https://docs.openwebui.com/tutorials/https/nginx
CORS_ALLOW_ORIGIN="https://openwebui.hello.duckdns.org"
the above breaks and has json error for some reason.
did the above, but didn't work. Still have this saved as
https://open-webui.rcs1.top
maybe that's correct or it needs
https://open-webui.rcs1.top/webhook
like the example it shows in open-webui and not docs...
Updated cors bs that don't work
3f165ca650websocket issues:
https://github.com/open-webui/open-webui/discussions/18250
Now trying to downgrade from 0.6.36 to 0.6.34 see if that works
Doesn't seem to be working with cors bs, gonna try commenting that out.
Error thrown
JSON.parse: unexpected character at line 1 column 1 of the JSON dataAlright commenting out cors and webui_url works locally, but not behind reverse proxy. idk wtf bro
Setting ENABLE_WEBSOCKET_SUPPORT=false did the trick -- now there are a lot of HTTP requests, but it is working.
the above did not work for me whether true or false. Downgrade didn't work. idk. stupid
The connection to wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket was interrupted while the page was loading. websocket.js:43:27
GET
wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket
NS_ERROR_WEBSOCKET_CONNECTION_REFUSED
Firefox can’t establish a connection to the server at wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket. websocket.js:43:27
Firefox can’t establish a connection to the server at wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket. websocket.js:43:27
The connection to wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket was interrupted while the page was loading. websocket.js:43:27
Firefox can’t establish a connection to the server at wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket. websocket.js:43:27
The connection to wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket was interrupted while the page was loading. websocket.js:43:27
GET
wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket
NS_ERROR_WEBSOCKET_CONNECTION_REFUSED
Firefox can’t establish a connection to the server at wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket. websocket.js:43:27
Firefox can’t establish a connection to the server at wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket. websocket.js:43:27
The connection to wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket was interrupted while the page was loading. websocket.js:43:27
from
https://github.com/krausality/nginx-https-open-webui-proxy/blob/main/docker-compose.yml
see if it works
wonder if this has something to do with it:
<html> ENABLE_OAUTH_ID_TOKEN_COOKIE | true | For backward compatibility. Controls if the legacy oauth_id_token cookie is set. Recommended to set to false. -- | -- | -- </html>Critical Configuration Notes:
although this whole page is about oauth which is not basic authentication, maybe it's auto adding some of this shit which in turn throws off web sockets. Idk, should still be in readable json format.
Link for data: https://docs.openwebui.com/features/auth/sso/
Env Variables
https://docs.openwebui.com/getting-started/env-configuration#redis
Trusted header look at later:
https://docs.openwebui.com/features/auth/sso/
guess not having http://192.168.86.239:3030, was causing local version not to work.
tried adding http://192.168.86.1 to get reverse proxy working, figure it would come from router basically port 80? maybe need to add port 80
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
Firefox can’t establish a connection to the server at wss://open-webui.rcs1.top/ws/socket.io/?EIO=4&transport=websocket.
I wonder if it's because of the cors thing or something id, wss:// isn't in that
tried that too, wasn't the issue.
2025-11-21 18:19:47.588 | INFO | open_webui.models.auths:authenticate_user:126 - authenticate_user: prodigysick@gmail.com
2025-11-21 18:19:47.895 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 192.168.86.1:0 - "POST /api/v1/auths/signin HTTP/1.1" 200
2025-11-21 18:19:47.922 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 192.168.86.1:0 - "GET /api/config HTTP/1.1" 200
2025-11-21 18:20:00.641 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 172.20.0.37:35342 - "GET / HTTP/1.1" 200
2025-11-21 18:20:17.786 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 192.168.86.139:54730 - "GET /_app/version.json HTTP/1.1" 304
using :
- CORS_ALLOW_ORIGIN=https://open-webui.rcs1.top;https://rcs1.top;http://open-webui;http://open-webui:8080;https://open-webui:8080;http://192.168.86.239;http://192.168.86.239:3030;http://localhost:3030;http://192.168.86.1:80;http://192.168.86.1:443
didn't work for reverse proxy. So a bunch of these variables just seem pointless now ig
i did end up getting redis and the variable cors_allow_origin to work in template provided
https://gitea.rcs1.top/sickprodigy/home-server/src/branch/main/open-webui/docker-compose.yml
but it still doesn't allow nginx to work properly.
key part that helped, having local at least tap right with "http://192.168.1.239:3030" in cors_allow_origin. along with gateway since it seems requests would look like they are coming from there also.
I think now it kind of depends on open-webui to fix the way they allow connections through container or something. Maybe nginx is stripping some variables before sending it through. Could check that somehow I'm sure.
ordered a fan, graphics card, and fan housing to go with this. Not exactly related but figured I'd mention here. After several updates, the reverse proxy link still isn't working. Not quite sure what to do to fix.