jeremy
February 29, 2020, 5:11pm
1
Hello,
Is it possible to set SSL cert to Pi-hole web interface on docker image?
There is a nice guide but on normal installation:
How can I enable HTTPS (SSL/TLS) for my Pi-hole Web Interface?
Many users run their Pi-hole on Virtual Private Servers and such, meaning that they would need to access the Web Interface via insecure HTTP. Now, you are able to configure Pi-hole so you can securely access your Web Interface, and not cause issues with blocked HTTPS content.
What has changed to allow this?
With the release of v3.2, we have made changes to our default lighttpd config to not automatically enable the SSL engine if /…
When I set volume mapping between docker container and host to "/etc/lighttpd/" for access to config files the Pi-hole not starting.
Easier to just use a proxy image or an actual proxy to handle it. Bonus is that you can get letsencrypt working and not have to worry about the certs.
jeremy
February 29, 2020, 5:20pm
3
Dan, what do you mean "proxy image"?
You mean that I can not to configure "lighthttpd" and I should use some "proxy" software outside container?
To handle TLS termination? Yeah, that would be the best option.
jeremy
February 29, 2020, 5:34pm
5
Yes, I want to add trusted certificate to https web interface of pihole on docker instalation.
You mean that is a best option to use outside proxy server to do it on docker instalation instead of "doing something" with "lighthttpd" inside of container?
Yeah, that would be the best option.
If proxy with certbot, you somehow have to do the LetsEncript challenge, for renewing the cert, on the proxied host and not the proxy itself ... I experienced.
Probably exists a solution to do that but is something to consider!
gunn0r
November 16, 2022, 7:32pm
9
I wanted to do the same thing and this discussion helped me to do that within 10 mins: Pi-hole im docker mit https - Help / Deutschsprachige Hilfe - Pi-hole Userspace