Hi, there.
I’m a newbie who recently installed swag plus duckdns, nextcloud, radarr, sonarr, airsonic, etc. on my Pi4 4Gb with Raspbian.
I can access all the apps both from within my local network and from outside with xxxx.example.duckdns.org (it’s true that from lan it’s a bit laggy but I access).
With the nextcloud container I can only access from outside the network and from the lan it is impossible.
This is my docker-compose, mariadb, nextcloud and swag part:
duckdns: image: linuxserver/duckdns container_name: duckdns environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} - SUBDOMAINS=${SUBDOMINIOS} - TOKEN=${DUCK_TOKEN} volumes: - $HOME/docker/duckdns/config:/config restart: unless-stopped swag: image: linuxserver/swag:1.8.0-ls15 container_name: swag cap_add: - NET_ADMIN environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} - URL=example.duckdns.org - SUBDOMAINS=wildcard - VALIDATION=duckdns - DUCKDNSTOKEN=${DUCK_TOKEN} - EMAIL=zzzzzz@example.com - DHLEVEL=2048 - ONLY_SUBDOMAINS=true volumes: - $HOME/docker/letsencrypt:/config ports: - 1443:443 - 180:80 restart: unless-stopped mariadb: image: linuxserver/mariadb container_name: mariadb environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} - MYSQL_DATABASE=${MYSQL_DATABASE} - MYSQL_USER=${MYSQL_USER} - MYSQL_PASSWORD=${CONTRASENA} volumes: - $HOME/docker/mariadb/:/config - $HOME/docker/mariadb/conf.d:/etc/mysql/conf.d ports: - 3306:3306 restart: unless-stopped nextcloud: image: linuxserver/nextcloud container_name: nube environment: - PUID=${PUID} - PGID=${PGID} - TZ=${TZ} volumes: - $HOME/docker/nextcloud/appdata:/config - $HOME/docker/nextcloud/data:/data ports: - 2443:443 - 280:80 external_links: - mariadb:mariadb depends_on: - mariadb restart: unless-stopped
My nextcloud.subdomain.conf
<?php
$CONFIG = array (
‘memcache.local’ => ‘\OC\Memcache\APCu’,
‘datadirectory’ => ‘/data’,
‘instanceid’ => ‘occh9faapt7b’,
‘passwordsalt’ => ‘vGQdjBYjQBo1tCbS1unyvW/Rz02EC2’,
‘secret’ => ‘SI0VMoL7tVJwfKdZlfxLOhfc2zqruO6uvvql2jJ/TAr4k7C9’,
‘trusted_domains’ =>
array (
0 => ‘192.168.1.151:2443’,
1 => ‘xxxx.example.duckdns.’,
),
‘dbtype’ => ‘mysql’,
‘version’ => ‘20.0.1.1’,
‘dbname’ => ‘nube’,
‘dbhost’ => ‘mariadb:3306’,
‘dbport’ => ‘’,
‘dbtableprefix’ => ‘oc_’,
‘dbuser’ => ‘javier’,
‘dbpassword’ => ‘1234567890’,
‘trusted_proxies’ => [‘swag’],
‘overwrite.cli.url’ => ‘s://xxxx.example.duckdns./’,
‘overwritehost’ => ‘xxxx.example.duckdns.’,
‘overwriteprotocol’ => ‘https’,
‘installed’ => true,
);
I’ve spent the weekend reading and trying different configurations that I have found and I have not found the solution.
Anyone have any ideas how I can fix the problem?
Thanks in advance.
P.D.: I had to remove the example.duckdns because the system limit of 2 links.