ok so here is where I'm at. I deleted everything, recreated it all again, this time using a single compose file which created all the containers; swag, nextcloud, nextclouddb. edited the proxy conf file in the swag folder. made the following change: line 20 >> fun1sys.*
Was able to locally complete the installation of nextcloud, but the admin login hanged and then timed out. edited the config.php file and added the following info:
1 => 'fun1sys.duckdns.org',
'overwrite.cli.url' => 'https://fun1sys.duckdns.org',
'overwritehost' => 'fun1sys.duckdns.org',
'overwriteprotocol' => 'https',
As soon as I did that and restarted the nextcloud container I could no longer access the nextcloud web page either locally or remotely. I would get the following error: fun1sys.duckdns.org refused to connect.
Here is the complete Docker compose file ( i will add as attachment also)
=================================================================================================
version: "2"
services:
nextcloud:
image: ghcr.io/linuxserver/nextcloud:latest
container_name: nextcloud
environment:
- PUID=1000
- PGID=100
- MYSQL_HOST=nextclouddb
- NEXTCLOUD_ADMIN_USER=admin
- NEXTCLOUD_ADMIN_PASSWORD=magicshow
volumes:
- /srv/dev-disk-by-uuid-a5ace7d5-5952-4205-a5d4-7408637605c9/app/nextcloud/config:/config
- /srv/dev-disk-by-uuid-a5ace7d5-5952-4205-a5d4-7408637605c9/app/nextcloud/data:/data
- /etc/localtime:/etc/localtime:ro
depends_on:
- mariadb
ports:
- 450:443
restart: unless-stopped
mariadb:
image: ghcr.io/linuxserver/mariadb:latest
container_name: nextclouddb
environment:
- PUID=1000
- PGID=100
- MYSQL_ROOT_PASSWORD=magicshow
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=admin
- MYSQL_PASSWORD=magicshow
volumes:
- /srv/dev-disk-by-uuid-a5ace7d5-5952-4205-a5d4-7408637605c9/db/nextclouddb/config:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
swag:
image: linuxserver/swag
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=100
# - DNSPLUGIN=duckdns #originally tried using this, don't have the plugin, cert gen failed
- URL=fun1sys.duckdns.org #changed from duckdns.org
- DUCKDNSTOKEN=92908fbe-fa0d-4160-89a8-17199d4c0fc0
- SUBDOMAINS=wildcard #changed from fun1sys
- ONLY_SUBDOMAINS=true
- VALIDATION=duckdns # changed from http
- EMAIL=doogleaelf@yahoo.com
volumes:
- /srv/dev-disk-by-uuid-a5ace7d5-5952-4205-a5d4-7408637605c9/app/swag:/config
- /etc/localtime:/etc/localtime:ro
depends_on:
- nextcloud
ports:
- 457:443
- 91:80
restart: unless-stopped
=================================================================================================

================================================================================================
And this is the swag output using the latest iteration of the all in one compose file:
-1 }"> - Congratulations! Your certificate and chain have been saved at:
-1 }"> /etc/letsencrypt/live/fun1sys.duckdns.org/fullchain.pem
-1 }"> Your key file has been saved at:
-1 }"> /etc/letsencrypt/live/fun1sys.duckdns.org/privkey.pem
At this point I'm clueless. There appears to be different interpretations of how to set this up. Any help would be appreciated.