Hi all, not sure if this is the right place to raise this - but after trying many things I have to ask for help on this. I have followed Spaceinvaderone's tutorial to set up Nextcloud and Letsencrypt (linuxserver's dockers). Nextcloud now works on my LAN but I cant get it to work with a domain or letsencrypt.
Letsencrypt correctly validates my domain but for some reason, somewhere between that and Nextcloud, the forwarding doesnt work. My domain is with Namecheap, and the DNS is with Cloudfare. I've tried setting this to directly connect via A record and CName (via duckdns) but each time, the domain fails to resolve at the server. I have port forwarding set correctly for letsencrypt on my router.
As per Spaceinvaderone's tutorial, i have changed the network of the 2 dockers to proxynet (Maria DB left on bridge), changed the settings on letsencrypt & nextcloud via CA config editor & renamed the file to .conf for the former.
Can anyone help and let me know what I am missing
/mnt/user/appdata/letsencrypt/nginx/proxy-confs/nextcloud.subdomain.conf
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name nextcloud.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
resolver 127.0.0.11 valid=30s;
set $upstream_nextcloud nextcloud;
proxy_max_temp_file_size 2048m;
proxy_pass https://$upstream_nextcloud:443;
}
}
---> renamed to nextcloud.subdomain.conf
/mnt/user/appdata/nextcloud/www/nextcloud/config/config.php
array (
0 => '10.0.0.100:444',
1 => 'nextcloud.*mydomain*.com',
),
'dbtype' => 'mysql',
'version' => '15.0.2.0',
'trusted_proxies' => ['letsencrypt'],
'overwrite.cli.url' => 'https://nextcloud.*mydomain*.com',
'overwritehost' => 'nextcloud.*mydomain*.com',
'overwriteprotocol' => 'https',
Note: Spaceinvaderone's tutorial does not show the need to add 'trusted_proxies' => ['letsencrypt'], but adding or leaving out this line does not make a difference