From 05af639664dc69cce55e88aa91f8eac90a366bd3 Mon Sep 17 00:00:00 2001 From: Josh Date: Wed, 25 Feb 2026 11:40:00 -0500 Subject: [PATCH 1/2] fix(SetupChecks): update ServerId fallback message Context: This will be the default behavior and visible message to any instance upgraded from --- apps/settings/lib/SetupChecks/ServerIdConfig.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/settings/lib/SetupChecks/ServerIdConfig.php b/apps/settings/lib/SetupChecks/ServerIdConfig.php index 1b6b6b1bed27e..daf990ababc4c 100644 --- a/apps/settings/lib/SetupChecks/ServerIdConfig.php +++ b/apps/settings/lib/SetupChecks/ServerIdConfig.php @@ -40,7 +40,12 @@ public function run(): SetupResult { if ($serverid === PHP_INT_MIN) { return SetupResult::info( - $this->l10n->t('Server identifier isn’t configured. It is recommended if your Nextcloud instance is running on several PHP servers. Add a server ID in your configuration.'), + $this->l10n->t( + 'The ``serverid`` parameter is not configured. ' + . 'By default, Nextcloud uses a fallback based on the server hostname. ' + . 'The fallback suggests a standalone setup, which is generally safe if your configuration will remain on a single server and never be cloned, migrated, or scaled out. ' + . 'However, if you are running Nextcloud on multiple servers, sharing ``config.php``, or you plan to expand your setup in the future, you should explicitly set a unique integer ``serverid`` (0–1023) for each server. ' + ), $linkToDoc, ); } From 89ec97ee94ce1f3f38c834ad4738bf1b2ed8ea01 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 11 Jun 2026 11:46:36 +0200 Subject: [PATCH 2/2] fix: Improve a bit the wording Co-authored-by: Benjamin Gaussorgues Signed-off-by: Carl Schwan --- apps/settings/lib/SetupChecks/ServerIdConfig.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/settings/lib/SetupChecks/ServerIdConfig.php b/apps/settings/lib/SetupChecks/ServerIdConfig.php index daf990ababc4c..313bd1bb10d56 100644 --- a/apps/settings/lib/SetupChecks/ServerIdConfig.php +++ b/apps/settings/lib/SetupChecks/ServerIdConfig.php @@ -42,9 +42,9 @@ public function run(): SetupResult { return SetupResult::info( $this->l10n->t( 'The ``serverid`` parameter is not configured. ' - . 'By default, Nextcloud uses a fallback based on the server hostname. ' - . 'The fallback suggests a standalone setup, which is generally safe if your configuration will remain on a single server and never be cloned, migrated, or scaled out. ' - . 'However, if you are running Nextcloud on multiple servers, sharing ``config.php``, or you plan to expand your setup in the future, you should explicitly set a unique integer ``serverid`` (0–1023) for each server. ' + . 'By default, Nextcloud uses a fallback based on the server hostname. ' + . 'The fallback is safe for a standalone setup.' + . 'However, if you are running Nextcloud on multiple servers, you plan to expand your setup in the future, or simply want to suppress this message, you should explicitly set a unique integer ``serverid`` (0–1023) for each server. ' ), $linkToDoc, );