-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for TLS certificates #11
Comments
works great should possibly be in the readme |
Here's a possible alternative approach that provides automatic renewal. I'm using this project, udm-le, and udm-utilities with AdGuard Home on a UDM. To simplify certificate configuration and renewal, I configured my udm-le instance with subject alternative names for UDM, AdGuard Home, ntopng, and a few others. I've not done SSL for ntopng yet, but was able to point AdGuard Home directly to the udm-le certificate folder after mounting it as a read-only volume. The new AdGuard container startup has one added line as you can see below. The SSL settings within AGH can then be configured through the GUI or directly in AdGuardHome.yaml.
Does this approach potentially make it easier? Still, the idea of having a registry of sorts for providing certificates to different containers on UDM would be amazing. |
if you append
automatically restarting ntopng is another matter all together |
As documented, ntopng runs on port 3001 but with an old certificate. Safari doesn't really like that.
It's possible to provide a certificate to ntopng (howto) so that browsers are happy.
In the case of ntopng-udm, we need to put a private key and certificate chain into
/usr/share/ntopng/httpdocs/ssl/ntopng-cert.pem
. If using @kchristensen's https://github.com/kchristensen/udm-le to generate certs with LetsEncrypt, this information is available locally. Thus you can:And then create the container with:
Bonus points, it is necessary to update
udm-le.sh
to updatentopng-cert.pem
. Ideally we'd build some sort of registry of things that need to get updated so that we can de-coupleudm-le.sh
from knowing specifically aboutntopng
but for now a quick hack this diff should work.Thoughts? I can throw together a PR to update the docs if you want.
The text was updated successfully, but these errors were encountered: