I have docker/portainer installed on of my machines at home. It currently has 4 containers: prtainer itself, vaultwarden, nextcloud & docker-mailserver.
This machine will never be exposed to the internet. I'm trying to configure HA Proxy to use it locally. I have a wildcard certificate from LetsEncrypt (*.home.mydomain.com).
Nextcloud listens on port 443.
Vaultwarden listens on port 80 -- but when I try to open it, the browser refuses to load it saying it requires https.
docker-mailserver will need to listen on multiple ports.
I setup 2 virtual IPs 10.10.0.12 and 10.10.0.13 for Vaultwarden and Nextcloud respectively. I haven't done anything for the mailserver yet. I added DNS Overrides pointing nc.home.mydomain.com to 10.10.0.13 and pointing vault.home.mydomain.com to 10.10.0.12.
WIthin the HAProxy settings, I made a backend for NC and VW both. Then I made a Frontend for each of them as well.
When I try to browse to vault.home.mydomain.com OR nc.home.mydomain.com, it tells me the connection is not secure AND won't show me anything from the respective GUIs.
I don't know if this is exclusively an HAProxy issue or also related to LetsEncrypt.
Front Ends:
06253ab7-b1aa-49ff-8cc4-1db1409c9c16-image.png
Nextcloud backend (the rest of the backend is all unmodified from OOTB):
5607e565-9d65-4737-b696-97009cd38d9b-image.png
Vaultwarden backend (the rest of the backend is all unmodified from OOTB):
61c48c63-0d85-41d1-bc00-06cb3875cf45-image.png
When I use the NSLOOKUP tool, nc.home.mydomain.com and vault.home.mydomain.com do both show the correct virtual IPs. LetsEncrypt indicated that it created the certificate with no problems. But here's the certificate parameters showing the domain entry its for:
81018768-addc-42cb-922f-c13324d24c38-image.png