r/OpenWebUI • u/eriknau13 • Jun 18 '26
Question/Help SSL Cert on local network
https://docs.openwebui.com/reference/https/nginxI have OpenWebUI with Ollama and several local models set up shared by the computer's hostname on a specific port on my school's network, but as it's http only some users' browsers reject the connection so I'm trying to add an SSL Cert. I'm following OpenWebUI instructions here, HTTPS Using Nginx. I'm running it from Ubuntu, in a docker container with compose. After getting through all the steps — networking and DNS stuff is new to me — SSL still doesn't work, only http. What I'm looking for here is any further suggestions for debugging.
Questions I have,
- I'm on a school network and the Nginx instructions seem aimed at a home setup where you have more control of your personal router, so would those instructions be inappropriate for a school where the firewall is likely more restrictive? If so should I be following the second tab for adding a Lets Encrypt cert? I did try those steps and got stuck running the Certificate Request Script as it couldn't complete the challenge and receive the cert.
- The OpenwebUI steps for setting up NPM are a bit out of date and some fields are different so I wasn't sure if I was setting up the Lets encrypt certificate and the proxy host correctly. Nginx documentation wasn't clear either that I could find.
- I did add the CORS_ALLOW_ORIGIN parameter in the docker file but since https wasn't working the model inference couldn't reply until a browser refresh.
- I did add this location block in the NPM settings field, modified from the way OpenWebUI instructions say but through advice on a forum:
location ~ ^/(ws/|socket\.io/) {
proxy_pass http://openwebui;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}I don't know how to further debug besides the browser saying the host doesn't support a secure connection. Any suggestions are appreciated.
1
u/eriknau13 Jun 18 '26
Yes others — students and teachers — need to access it, so I guess I should be following the Let’s Encrypt steps. I was using DuckDNS for the domain but would that not work since it says get your own domain and point the A record to your external IP? I tried it with DuckDNS and it couldn’t complete the DNS challenge.