Problem connecting trough different NICs

Hello. I just installed NextCloud into my Unraid Server and it did fine. I can access it from my MacBook using the local IP Adress, navigate it, sync files to it, no problems. The MacBook is connected to the Unraid server through direct nic to nic 2.5G ports. The server is also connected to the home router through a 1G LAN cable.
When I try to connect from other clients as another computer or iOS devices connected to the same network, (with the proper IP Adress which is different from the direct connection one) I get a “trying to access an unsafe connection” message and a recommendation to edit the config file. I did, as shown below, but it seems to have a syntax problem, although I copied the structure from the config example file.

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'upgrade.disable-web' => true,
  'instanceid' => 'ocncg2kxbjgs',
);

'trusted_domains' =>
   [
        '192.168.0.150'
  ],

In the ‘trusted_domains’ => it says there is a double arrow erro syntax…

What is wrong here?

The trusted domain is behind the end:

);

of the config array

Try this way:

  'upgrade.disable-web' => true,
  'instanceid' => 'ocncg2kxbjgs',
  'trusted_domains' => 
  array (
    0 => '192.158.0.150',
    1 => 'other ip of other nic',
    2 => '127.0.0.1',
    3 => 'hostname',
  ),
);

Much and good luck,
ernolf

2 Likes

Ah, great, I’ll try that, thanks!