I have been banging my head against the wall with this for a while watching all of TDL's videos on the subject and trying out a number of different edited configs and junk. To start off with I successfully had nextcloud working with mariadb just before attempting to add on duckdns and letsencrypt. I have managed to make it as far as getting my certs authenticated but I'm stuck at the "welcome to our server" page and I can't find a solution that works.
I took a bunch of screenshots and put them into one picture to upload hopefully its easily readable. It feels like nextcloud and letsencrypt are having issues communication because if I take down letsencrypt and the code in the config files then nextcloud will just work normally in my browser but then I put them back and the "welcome to our server". Appreciate any help you guys can give me.
Really hoping its something just simple and dumb that I've been overlooking.
# make sure that your dns has a cname set for nextcloud
# assuming this container is called "letsencrypt", edit your nextcloud container's config
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
# 'trusted_proxies' => ['letsencrypt'],
# 'overwrite.cli.url' => 'https://nextcloud.your-domain.com/',
# 'overwritehost' => 'nextcloud.your-domain.com',
# 'overwriteprotocol' => 'https',
#
# Also don't forget to add your domain name to the trusted domains array. It should look somewhat like this:
# array (
# 0 => '192.168.0.1:444', # This line may look different on your setup, don't modify it.
# 1 => 'nextcloud.your-domain.com',
# ),
server {
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 1024m;
proxy_pass https://$upstream_nextcloud:443;
}
}
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'datadirectory' => '/data',
'instanceid' => 'xxxxxxxxxxxxxxx',
'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
'trusted_domains' =>
array (
0 => '192.168.1.101:444',
1 => 'nextcloud.subdomain-name.duckdns.org',
2 => 'subdomain-name.duckdns.org:444',
3 => 'localhost',
),
'overwrite.cli.url' => 'https://nextcloud.subdomain-name.duckdns.org',
'overwritehost' => 'nextcloud.subdomain-name.duckdns.org',
'trusted_proxies' =>
array (
0 => 'letsencrypt',
),
'overwriteprotocol' => 'https',
'dbtype' => 'mysql',
'version' => '15.0.0.10',
'dbname' => 'nextcloud',
'dbhost' => '192.168.1.101:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'xxxxxxxxx',
'dbpassword' => 'xxxxxxxxxxxxxxxxxxxxxxxxx',
'installed' => true,
);