From ada2d99579fc98a6cf51b265ccf981a38f03fe5b Mon Sep 17 00:00:00 2001 From: Marvin Zurborg <106014757+Sommerwiesel@users.noreply.github.com> Date: Sun, 14 Apr 2024 15:46:34 +0000 Subject: [PATCH] Update domain_change.rst Add instructions for a domain change. Signed-off-by: Marvin Zurborg <106014757+Sommerwiesel@users.noreply.github.com> --- .../configuration_server/domain_change.rst | 20 ++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/admin_manual/configuration_server/domain_change.rst b/admin_manual/configuration_server/domain_change.rst index c51a33030f6..d6b60c64ab6 100644 --- a/admin_manual/configuration_server/domain_change.rst +++ b/admin_manual/configuration_server/domain_change.rst @@ -2,7 +2,21 @@ Domain Change ===================== -Changing the domain after the first setup is currently not supported by Nextcloud. That is mainly because Nextcloud's apps don't support changing the domain after they are set up. +Changing the domain after the first setup is quite easy. -.. note:: - This documentation will get updated with steps what needs to be done if you want to change the domain as soon as this feature is available. +First, you should have the new domain ready, including DNS, a valid SSL-certificate and the apropriate virtual host entry in the webserver of your choice (apache2, nginx, etc). + +Next, simply edit the main config file under (nextcloud-root)/config/config.php and add the new domain as well as the ipv4-adress (and the ipv6-address if you support ipv6) to the trusted_domains array as follows: + +.. code-block:: + :caption: config.php + + 'trusted_domains' => + array ( + 0 => 'localhost', + # Change these entries + 1 => 'example.com', + 2 => '1.2.3.4', + ), + +Your nextcloud instance should now be fully accessible under the new domain.