Problem with "trusted domain"

Hi community !

I’ve nextcloud on raspberrypi 4

Instalation is ok, i can connect to nextcloud with my computer using http://xxx.xxx.xxx:xx

I want to acces it with no-ip. It work but i can’t do nothing, there is problem with trusted domain.

<?php
$CONFIG = array (
  'passwordsalt' => 'sensitive Data removed by Mod/JK',
  'secret' => 'sensitive Data removed by Mod/JK',
  'trusted_domains' =>
  array (
    0 => 'localhost',
    22 => '192.168.x.xx',  **raspberry IP**
    '' => 'nextcloudpi',
    11 => '86.210.xxx.xxx', **public IP from routeur**
    1 => '192.168.x.xx',   `**computer IP**`
    14 => 'nextcloudpi',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.4.1',
  'overwrite.cli.url' => 'https://nextcloudpi/',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'ncadmin',
  'dbpassword' => 'sensitive Data removed by Mod/JK',
  'installed' => true,
  'instanceid' => 'oc8og977lyec',
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis.sock',
    'port' => 0,
    'timeout' => 0.0,
    'password' => 'sensitive Data removed by Mod/JK',
  ),
  'tempdirectory' => '/var/www/nextcloud/data/tmp',
  'mail_smtpmode' => 'sendmail',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'admin',
  'mail_domain' => 'ownyourbits.com',
  'preview_max_x' => '2048',
  'preview_max_y' => '2048',
  'jpeg_quality' => '60',
  'overwriteprotocol' => 'https',
  'trusted_proxies' =>
  array (
    11 => '127.0.0.1',
    12 => '::1',
    13 => 'nextcloudpi',
    14 => '',
  ),
  'loglevel' => '2',
  'log_type' => 'file',
);

There’s possibility to allowed all domains and IP ? There’s some risk to do this ?

Thanks

hey @Charles00 and welcome to the userforum of NC.

as you can see I have edited some stuff in your pösting. Though you should consider your instance as being compromized now!

Apart from that: as far as I remember ncp does activly help you in obtaining a dyndns-account with several serviceproviders… like no-ip. I think you should check out their docs under nextcloudpi.com on how doing that, exactly. It’s no miracle.

1 Like