Owncloud: You are accessing the server through an untrusted domain

Ran into this same problem after updating to UCS 5.0.5 and owncloud 10.13.2. Like the original poster, tried editing config.php and docker-compose.yml. Nothing works. This instructions marked as the solution is also not working for me. The “get trusted domains” returns the UCS default rather than the values I have set and have been using successfully until now. Any ideas?