This is my first post here, please let me know if there is a better place to put this. Thank you in advance for your help.
I am running multiple applications on my network behind a reverse proxy, each running on their own VPS, all accessed via DDNS. All of this so far has been working fine for over a year now. I am currently trying to setup access to nextcloud in the same manner. So I installed nextcloud via snap on it’s own installation of Ubuntu 18.04. I updated the config.php and added my reverse proxy’s IP address, and the subdomain/domain to the list of trusted proxies. I am able to successfully navigate to my nextcloud instance via the computer’s IP address, and domain name. I am also able to successfully navigate to the instance via my subdomain/domain combo when I use my hosts file to redirect to my proxy, so I know that my reverse proxy is routing properly. Additionally, my DDNS setup is fine. Checking both ping, and dnschecker.org/ shows that my subdomain is resolving correctly to the IP address I expect.
At this point, if I try to run letsencrypt, I get errors:
Failed authorization procedure. subdomain.domain.com (http-01):
urn:ietf:params:acme:error:connection ::
The server could not connect to the client to verify the domain ::
Fetching http://subdomain.domain.com/.well-known/acme-challenge/<hash here>
Timeout during connect (likely firewall problem)
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: subdomain.domain.com
Type: connection
Detail: Fetching
http://subdomain.domain.com/.well-known/acme-challenge/<hash here>
Timeout during connect (likely firewall problem)
I can provide additional details as well. But I have tried everything I can think of to get this to work, and have had no success so far. Any suggestions would be greatly appreciated.