Server address not https

Running Nextcloud 16.0.1.1 in docker
Latest patch level

I have docker up and running with a nginx-proxy and letsencrypt certificates and the site works perfectly using https, but Nextcloud doesnt seem to know it is reachable using https.

When i go to settings / personal / mobile & desktop
I see

Server address

Use this URL to connect your clients to this server:

And there it shows the correct url but with http.

How can i let nextcloud know that it is reachable by https by default ?

i changed the line ‘overwrite.cli.url’ => in config.php to the https, reservered the server but still no change.

nginx as proxy or web server?

Two times nginx, one as below from my docker-compose and one jwilder/nginx-proxy in front for virtualhosting/ssl

   services:
      db:
        image: mariadb
      ....

      app:
        image: nextcloud:fpm
    ....

      web:
        image: nginx
        environment:
          - VIRTUAL_HOST=${HOSTNAME}
          - LETSENCRYPT_HOST=${HOSTNAME}

‘overwrite.cli.url’ seems for command line.

Try adding

‘overwriteprotocol’ => ‘https’,

and below if necessary

‘overwritehost’ => ‘hostname:port’,
‘proxy’ => ‘hostname:port’,

and then reload the config or reboot the server.

1 Like

This worked ! Thank you so much