All Categories
  • 1st Steps
  • Authentication
  • Branding
  • Changelogs
  • Collaboration
  • Compliance
  • Customization
  • Desktop Client
  • External Storage
  • Frequently Asked Questions
  • Installation
  • Migrations
  • Mobile Clients
  • Nextcloud Context Chat
  • Nextcloud Flow (Windmill integration)
  • Nextcloud Talk
  • Operations
  • Partner Products
  • Roundcubemail
  • Scalability
  • Security
  • Multiple domains

    To use more than one domain for your Nextcloud, you need to configure them all as trusted in your configuration file:

    'trusted_domains' =>
       [
        'demo.example.org',
        'otherdomain.example.org',
        '10.111.112.113',
        '[2001:db8::1]'
      ],
    

    If you use Nextcloud Office with Collabora on your server, you additionally have to configure the additional domains as aliases in the Collabora Server. Please see https://sdk.collaboraonline.com/docs/installation/Configuration.html#multihost-configuration for detailed information.

    If using Nextcloud Talk, the additional domains have to be set as backends in the signaling server. In the signaling server configuration, there is "backends" key under the "[backend]" section. To add a new backend, add its id there (for example, "backends = backend-1, backend-2") and then create a new section with that id:

    [backend-2]
    # URL of the Nextcloud instance
    url = otherdomain.example.org
    
    # Shared secret for requests from and to the backend servers. Leave empty to use
    # the common shared secret from above.
    # This must be the same value as configured in the Nextcloud admin ui.
    secret = the-shame-shared-secret-used-for-backend-1-given-that-it-is-the-same-instance-with-a-different-domain