……

nextcloud 公网访问提示通过不被信任的域名访问

解决方法:修改config文件下的config.php

1、修改trusted_domains

'trusted_domains' => 
  array (
    // 0 => '192.168.1.101',
    0 => $_SERVER['HTTP_HOST'],
  ),

2、修改overwrite.cli.url

//   'overwrite.cli.url' => 'http://192.168.1.101',
  'overwrite.cli.url' => 'http://'.$_SERVER['HTTP_HOST'],

 

posted @ 2024-04-03 18:08  十零  阅读(743)  评论(0编辑  收藏  举报