I'm attempting to run open-webui in docker on an internal network. Since the network's internal it can't access the host/internet, I'm also attempting to reverse proxy to the host via nginx. I'm successfully able to serve up static pages from open-webui (eg favicon.png) using nginx but not the dynamic pages. Also open-webui works without using this internal network and reverse proxy.
Although this is a docker/nginx question, the reason I'm asking this here is because it appears that open-webui is running on Uvicorn. According to Uvicorn's documentation (https://www.uvicorn.org/deployment/#running-behind-nginx) these settings may need to be set: --forwarded-allow-ips='*' and --proxy-headers.
My questions:
Is there a way to expose those Uvicorn properties?
If this works, can the correct yaml for this scenario be added to docs.
I'm not an expert at any of this so I'm sure I have the wrong configuration somewhere.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @dannongruver on GitHub (Mar 18, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/1202
I'm attempting to run open-webui in docker on an internal network. Since the network's internal it can't access the host/internet, I'm also attempting to reverse proxy to the host via nginx. I'm successfully able to serve up static pages from open-webui (eg favicon.png) using nginx but not the dynamic pages. Also open-webui works without using this internal network and reverse proxy.
Although this is a docker/nginx question, the reason I'm asking this here is because it appears that open-webui is running on Uvicorn. According to Uvicorn's documentation (https://www.uvicorn.org/deployment/#running-behind-nginx) these settings may need to be set:
--forwarded-allow-ips='*'and--proxy-headers.My questions:
I'm not an expert at any of this so I'm sure I have the wrong configuration somewhere.
Here's my docker-compose yaml:
Here's my nginx config (copied from https://www.uvicorn.org/deployment/#running-behind-nginx):
here are open-webui container logs
here are nginx container logs:```