I've set up a few sites in Docker, on Linode.
I started by following these instructions:
Connect Your Docker Containers to Domain Names For Easy Access using Portainer on Linode
The steps I followed are:
- Created a Linode
- Installed NGINX Proxy Manager in a Docker container
- Add my domain in https://cloud.linode.com/domains, point it to my Linode
- Redirect my domain's domain server to Linode on my domain's registrar
- Add Portainer in a Docker container
Then I installed VaultWarden in a Docker container, following these instructions:
Take Control of AND Secure Your Passwords Using Vaultwarden on Portainer
Steps here as follows:
- Setup A Sub-Domain
- Installed VaultWarden in Docker
- Enabled HTTPS In NGINX
- Created a Proxy Host in NGINX Proxy Manager that pointed to my VaultWarden container
In this process, I created an SSL Certificate using Let's Encrypt, through the NGINX Proxy Manager UI. (starting at 11:00 in the second video).
And all of that seemed to work, mostly.
Or, rather, in NGINX Proxy Manager's "Add Let's Encrypt Certificate" there;'s a "Test Server Reachability" button, and that always returned a "Communication with the API failed, is NPM running correctly?" error.
But, regardless of this, I was able to configure the redirect to the VaultWarden container, using the generated SSL key.
And then was able to access VaultWarden using the subdomain, and see that the browser can see the valid certificate.
My problem, now, is that I'm getting certificate is going to expire soon emails.
When I go back into NGINX Proxy Manager and look at SSL Certficates, I see a "Renew Now" option, and when I try it I get "Please Wait" for a while, then an "Internal Error" message.
What may or may not be relevant, the "Test Server Reachability" option still returns a "Communication with the API failed, is NPM running correctly?" error.
My problem is that these pretty GUIs aren't returning any sort of information as to what is going on, or why exactly it is failing.
There has to be some sort of logging, somewhere, that could give me a hint as to what the problem is.
Can someone help me find it?