So am trying to get Nextcloud to work with Letsencrypt using Spaceinvaders guide. Note nextcloud works before configuring it to work with letsencrypt. When trying to connect to my sub domain its getting 502 Bad gateway. In the ngnix log:
2019/04/09 08:49:58 [error] 353#353: *162 connect() failed (111: Connection refused) while connecting to upstream, client: 10.0.0.1, server: cloud.*, request: "GET /apps/files/ HTTP/2.0", upstream: "https://172.18.0.4:444/apps/files/", host: "cloud.mydomain.com"
Nextcloud docker:
changed network to custom
changed port to 444
NextCloud config.php
1 => 'cloud.mydomain.com',
'trusted_proxies' => ['letsencrypt'], ( tried with and without this line. )
'overwrite.cli.url' => 'https://cloud.mydomain.com',
'overwritehost' => 'cloud.mydomain.com',
'overwriteprotocol' => 'https',
nextcloud.subdomain.conf
just changed nextcloud.* to cloud.*
Any suggestions? I have it working with ombi just cant seem to figure it out with nextcloud.