Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEXTCLOUD_TRUSTED_DOMAINS with wildcard * reads directory #2337

Open
wrenix opened this issue Nov 22, 2024 · 1 comment · May be fixed by #2344
Open

NEXTCLOUD_TRUSTED_DOMAINS with wildcard * reads directory #2337

wrenix opened this issue Nov 22, 2024 · 1 comment · May be fixed by #2344
Labels

Comments

@wrenix
Copy link

wrenix commented Nov 22, 2024

Wildcard of trusted_domains import all the file and directory as an trusted_domain into the config/config.php:

NEXTCLOUD_TRUSTED_DOMAINS="*"
<?php
$CONFIG = array (
  '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,
    ),
  ),
  'objectstore' => 
  array (
    'class' => '\\OC\\Files\\ObjectStore\\S3',
    'arguments' => 
    array (
      'bucket' => 'nextcloud',
      'region' => 'eu-west-1',
      'hostname' => 'minio.nextcloud.svc.cluster.local',
      'port' => '9000',
      'storageClass' => 'STANDARD',
      'objectPrefix' => 'urn:oid:',
      'autocreate' => false,
      'use_ssl' => false,
      'use_path_style' => true,
      'legacy_auth' => false,
      'key' => 'nextcloud',
      'secret' => 'rootpass123',
    ),
  ),
  'upgrade.disable-web' => true,
  'passwordsalt' => 'nFjoJJiOEtWordW6lKdnsm5ZY2hH60',
  'secret' => 'NVsG0UexUyvGi/FHcdawWZMBkvljCN+vtjeCnMhThS98nGDp',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => '3rdparty',
    2 => 'AUTHORS',
    3 => 'COPYING',
    4 => 'LICENSES',
    5 => 'apps',
    6 => 'composer.json',
    7 => 'composer.lock',
    8 => 'config',
    9 => 'console.php',
    10 => 'core',
    11 => 'cron.php',
    12 => 'custom_apps',
    13 => 'data',
    14 => 'dist',
    15 => 'index.html',
    16 => 'index.php',
    17 => 'lib',
    18 => 'nextcloud-init-sync.lock',
    19 => 'occ',
    20 => 'ocs',
    21 => 'ocs-provider',
    22 => 'package-lock.json',
    23 => 'package.json',
    24 => 'public.php',
    25 => 'remote.php',
    26 => 'resources',
    27 => 'robots.txt',
    28 => 'status.php',
    29 => 'themes',
    30 => 'version.php',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'sqlite3',
  'version' => '30.0.2.2',
  'overwrite.cli.url' => 'http://localhost',
  'dbname' => 'nextcloud',
  'installed' => true,
  'instanceid' => 'och7q1by9zgo',
);
@joshtrichards
Copy link
Member

Hi @wrenix - Good catch. Fix pending in #2344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants