JasonRivers / Docker-Nagios

Docker image for Nagios
MIT License
231 stars 252 forks source link

HTTPS Options? #148

Open ic3dr460n opened 1 year ago

ic3dr460n commented 1 year ago

I've been playing with the apache2 configuration and can't seem to get HTTPS working. I don't want to use just HTTP. Is there any information on getting the web interface more secure?

JasonRivers commented 1 year ago

The best way to do https for this container is to use a proxy, either nginx-proxy, traefik or haproxy - The issue with adding in Https support in to the container is that if the certificates don't exist then apache fails to load.

I can see if there is a way of having a runtime flag to enable it, but using a proxy to achieve this would be recommended and easier to manage (renewing certificates & restarting services).

kevingoad-arcfield commented 8 months ago

If you are running this in an AWS Stack (we use Fargate), you can stick the container behind an ALB and offload SSL. This works great for us.