Bit of advance info - I’ve been using Owncloud via docker-compose now for over 12 months, able to access it locally via LAN (IP:port) and remotely with a reverse proxy on my domain. I updated the owncloud/server:latest
image today after it was pushed, and I started having trusted domain
issues.
Steps to reproduce
- Update image to latest
- Attempt access locally on LAN - get the ‘You are accessing the server from an untrusted domain’ page
- Attempt to access remotely via domain - get the same ‘You are accessing the server from an untrusted domain’ page
- Modify
config.php
infiles/config/config.php
to add server IP and domain, still get the same untrusted page response on both - Add
- OWNCLOUD_TRUSTED_DOMAINS=[IP] [domain]
(actual IP and domain used) to environment in docker-compose.yml - Still no access
- Change syntax of
- OWNCLOUD_TRUSTED_DOMAINS=
to add"
marks around the two different domain - Still no access
- Try separating the domains with commas, with and without
"
marks - Still no access
- Making changes to
config.php
doesn’t seem to do anything - Attempt single domain as server IP
- Can access locally but not remotely
- Change domain to personal subdomain
- Can access remotely but not locally
Expected behaviour
Access is possible both locally and remotely based on either docker-compose env variable or because they’re included in config.php
Actual behaviour
Changes to trusted-domains
array in config.php
doesn’t seem to have any effect, and only one entry in the docker-compose OWNCLOUD_TRUSTED_DOMAINS
seems possible
Server configuration
Operating system:
Synology DSM
Web server:
nginx
Database:
MariaDB:10.5
PHP version:
7.4.3 (as per php -v
once bashed into the container)
ownCloud version: (see ownCloud admin page)
10.11.0
Updated from an older ownCloud or fresh install:
Update
Where did you install ownCloud from:
docker image owncloud/server:latest
Signing status (ownCloud 9.0 and above):
No errors have been found
The content of config/config.php: (fyi this is over 10k lines, not sure what to remove here though)
gist=BackedUpBooty/5429d2f2f7094bac71e6a96b748d4044 (this is only from when I had local access, I can’t access it when I add more than one domain to the trusted domains variable in docker-compose)
Are you using external storage, if yes which one: local/smb/sftp/…
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
No
Client configuration
Browser:
Chrome
Operating system:
Win11
Logs
Web server error log
gist=BackedUpBooty/14cba95720e0922c00de3d46d3bf4047 (for today)
ownCloud log (data/owncloud.log)
gist=BackedUpBooty/e988541afe423f743c6cc4e1ca5b4d73 (public IPs and domain name redacted)