Overwrite.cli.url overwritten

In the config.php the variabile overwrite.cli.url overwritten on reboot with http://cloud/

Thank you

I do not understand your problem. Normally on reboot there is no modification in config.php. Please post more details. Perhaps you do not need the parameter at all.

overwrite.cli.url is overwritten with http://cloud/

Which installation of Nextcloud does you use e.g. NextcloudPi. On normal installations you must set it manually.

NextcloudPi use one PC

But in my opinion, it is one of these files:

  • /usr/local/bin/nextcloud-domain.sh
  • /usr/local/bin/ncp-update-nc
  • /usr/local/bin/ncp/CONFIG/nc-init.sh
  • /usr/local/bin/ncp/CONFIG/nc-prettyURL.sh

inside these files I found the string overwrite.cli.url

I think in your NextcloudPi (not config.php) configuration is an error. Perhaps you have not set the name and domain of you cloud at the correct places.

<?php
$CONFIG = array (
  'passwordsalt' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'secret' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => '192.168.1.9',
    1 => 'xxxx.xxxx.xxx',
  ),
  'datadirectory' => '/media/myCloudDati/ncdata',
  'tempdirectory' => '/tmp',
  'overwriteprotocol' => 'https',
  'overwrite.cli.url' => 'https://cloud/',

Sorry i do not use NextcloudPi. But there is a NextcloudPi configuration panel where you perhaps missed an entry for your domain name and then NextcloudPi does not insert the correct values in config.php on reboot.
The entry is something like cloud.server.tld or 192.168.1.9

LOG:

warning: No domain found. Defaulting to ‘cloud’
System config value trusted_domains => 3 set to string cloud
System config value overwrite.cli.url set to string https://cloud/

Search at this position: How to configure NextCloudPi | NextCloudPi Documentation

The file problem: /usr/local/bin/nextcloud-domain.sh

first old file:

set “${TRUSTED_DOMAINS[ip]}”

#ncc config:system:set trusted_domains 1 --value=${local_ip}

after new file

ncc config:system:set trusted_domains “${TRUSTED_DOMAINS[ip]}” --value="${local_ip}"
ncc config:system:set trusted_domains “${TRUSTED_DOMAINS[hostname]}” --value="$(hostname -f)"