Set hostname in docker

I set up a Nextcoud docker container with a nginx reverse proxy. The nginx proxy adds the ssl connection. I ran into a problem, Nextcloud doesn’t know my domain name. All created links start with http://nextcloud/…, thus I can’t share links etc.
I edited the config.php to ‘dbhost’ => ‘’ without any luck.
How can I set the domain name for Nextcloud so links get created as… ?
Hope someone can help.

i think it’s 'overwrite.cli.url' => 'https://...
dbhost is the database host.

I found the issue, I forgot to pass the Host in nginx.