it is all fixed by the OVERWRITEPROTOCOL option. my config had a conflict of values. docker compose was setting OVERWRITEPROTOCOL to http while the nextcloud config had OVERWRITEPROTOCOL to https.
setting both to https fixes the issue
1 Like