Question about trusted_domain

Hey guys,

I just installed NextCloud on an EC2 host using snap, I configured trusted_domain to have all the IPs the host has and the Amazon DNS that came with it, when I run:

sudo nextcloud.occ config:system:get trusted_domain

I get all of them, but even though they all are in there, I still get the message saying that trusted_domain needs to be configured.

Any ideas what can be happening here?

Thanks.