Hi,
I can't to connect on my nextcloud in 5G but OK in wifi.
I follow this:
Code
---
version: "2.1"
services:
swag:
image: lscr.io/linuxserver/swag:latest
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC
- URL=yourdomain.url
- VALIDATION=http
- SUBDOMAINS=www, #optional
- CERTPROVIDER= #optional
- DNSPLUGIN=cloudflare #optional
- PROPAGATION= #optional
- EMAIL= #optional
- ONLY_SUBDOMAINS=false #optional
- EXTRA_DOMAINS= #optional
- STAGING=false #optional
volumes:
- /path/to/appdata/config:/config
ports:
- 443:443
- 80:80 #optional
restart: unless-stopped
Display More
So my config:
Code
version: "2.1"
services:
swag:
image: lscr.io/linuxserver/swag:latest
container_name: swag
cap_add:
- NET_ADMIN
environment:
- PUID=998
- PGID=100
- TZ=Europe/Paris
- URL=maf.duckdns.org
- VALIDATION=duckdns
- SUBDOMAINS=wildcard
- EMAIL= xxxxx@gmail.com
volumes:
- /srv/dev-disk-by-uuid-17502927-0659-46e4-b066-8f3544387d4/Storage/appdata/swag/config:/config
ports:
- 10443:443
restart: unless-stopped
Display More
and
Code
version: "2.1"
services:
duckdns:
image: lscr.io/linuxserver/duckdns:latest
container_name: duckdns
environment:
- PUID=1000 #optional
- PGID=1000 #optional
- TZ=Etc/UTC #optional
- SUBDOMAINS=subdomain1,subdomain2
- TOKEN=token
- LOG_FILE=false #optional
volumes:
- /path/to/appdata/config:/config #optional
restart: unless-stopped
Display More
so my config:
Code
version: "2.1"
services:
duckdns:
image: lscr.io/linuxserver/duckdns:latest
container_name: duckdns
environment:
- PUID=998
- PGID=100
- TZ=Europe/Paris
- SUBDOMAINS=wildcard
- TOKEN=xxxxxxxxxx
#- LOG_FILE=false #optional
volumes:
- /srv/dev-disk-by-uuid-17502927-0659-46e4-b066-8f3534487d4/Storage/appdata/duckdns/config:/config #optional
restart: unless-stopped
Display More
and the .php, I follow this:
Code
GNU nano 5.4 nextcloud.subdomain.conf
## Version 2023/02/05
# make sure that your nextcloud container is named nextcloud
# make sure that your dns has a cname set for nextcloud
# assuming this container is called "swag", edit your nextcloud container's config
# located at /config/www/nextcloud/config/config.php and add the following lines before the ");":
# 'trusted_proxies' => ['swag'],
# 'overwrite.cli.url' => 'https://nextcloud.example.com/',
# 'overwritehost' => 'nextcloud.example.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.example.com',
# ),
Display More
So:
PHP
GNU nano 5.4 config.php
<?php
$CONFIG = array (
'memcache.local' => '\\OC\\Memcache\\APCu',
'datadirectory' => '/data',
'instanceid' => 'ocwimk1iamhk',
'passwordsalt' => 'L3/DL+/gIvUbOLl',
'secret' => '6vi3D',
'trusted_domains' =>
array (
0 => '192.168.1.99:450',
1 => 'maf.duckdns.org',
),
'dbtype' => 'mysql',
'version' => '25.0.4.1',
'overwrite.cli.url' => 'https://192.168.1.99:450',
'dbname' => 'nextcloud',
'dbhost' => 'nextclouddb',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'oc_admin',
'dbpassword' => '940K?]|$dbg]}szd,(v~&UbR&K+(NC',
'installed' => true,
'trusted_proxies' => ['swag'],
'overwrite.cli.url' => 'https://nextcloud.maf.duckdns.org',
'overwritehost' => 'nextcloud.maf.duckdns.org',
'overwriteprotocol' => 'https',
Display More
have you and idea please??