本文主要是介绍snap nextcloud 通过不被信任的域名访问,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
安装向导 — Nextcloud latest 管理手册 latest 文档
find / -name config.php
'trusted_domains' =>array (0 => 'localhost',1 => 'server1.example.com',2 => '192.168.1.50',3 => '[fe80::1:50]',
),
vim /var/snap/nextcloud/42567/nextcloud/config/config.php
vim /var/snap/nextcloud/42229/nextcloud/config/config.php
cat /var/snap/nextcloud/42229/nextcloud/config/config.php
<?php
$CONFIG = array ('apps_paths' =>array (0 =>array ('path' => '/snap/nextcloud/current/htdocs/apps','url' => '/apps','writable' => false,),1 =>array ('path' => '/var/snap/nextcloud/current/nextcloud/extra-apps','url' => '/extra-apps','writable' => true,),),'supportedDatabases' =>array (0 => 'mysql',),'memcache.locking' => '\\OC\\Memcache\\Redis','memcache.local' => '\\OC\\Memcache\\Redis','redis' =>array ('host' => '/tmp/sockets/redis.sock','port' => 0,),'log_type' => 'file','logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log','logfilemode' => 416,'passwordsalt' => 'goNPgiAEZl3HmRPcjAign0tAqJWQuE','secret' => 'bT4D+1179Ol1CSnTEG/YolV/CRnHasbDpBnOFxr7t9zVFP5p','trusted_domains' =>array (0 => 'localhost',1 => '192.168.1.*',2 => '192.168.1.*',),'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data','dbtype' => 'mysql','version' => '27.1.9.1','overwrite.cli.url' => 'http://localhost','dbname' => 'nextcloud','dbhost' => 'localhost:/tmp/sockets/mysql.sock','dbport' => '','dbtableprefix' => 'oc_','mysql.utf8mb4' => true,'dbuser' => 'nextcloud','dbpassword' => 'H-QVcITQJ_VwUIO-d8dhYuT-f9Sgwuq8fvebU1vIWtncSt8wbmcxfK7S224o2FG_','installed' => true,'instanceid' => 'oc0k21fy6wpv','maintenance' => false,'mail_from_address' => 'leiweiu','mail_smtpmode' => 'smtp','mail_sendmailmode' => 'smtp','mail_domain' => 'hotmail.com','mail_smtphost' => 'mail.outlook.com','mail_smtpport' => '587','loglevel' => 2,
);
cat /var/snap/nextcloud/42567/nextcloud/config/config.php
<?php
$CONFIG = array ('apps_paths' =>array (0 =>array ('path' => '/snap/nextcloud/current/htdocs/apps','url' => '/apps','writable' => false,),1 =>array ('path' => '/var/snap/nextcloud/current/nextcloud/extra-apps','url' => '/extra-apps','writable' => true,),),'supportedDatabases' =>array (0 => 'mysql',),'memcache.locking' => '\\OC\\Memcache\\Redis','memcache.local' => '\\OC\\Memcache\\Redis','redis' =>array ('host' => '/tmp/sockets/redis.sock','port' => 0,),'log_type' => 'file','logfile' => '/var/snap/nextcloud/current/logs/nextcloud.log','logfilemode' => 416,'passwordsalt' => 'goNPgiAEZl3HmRPcjAign0tAqJWQuE','secret' => 'bT4D+1179Ol1CSnTEG/YolV/CRnHasbDpBnOFxr7t9zVFP5p','trusted_domains' =>array (0 => 'localhost',1 => '192.168.1.*',2 => '192.168.1.*',),'datadirectory' => '/var/snap/nextcloud/common/nextcloud/data','dbtype' => 'mysql','version' => '28.0.6.1','overwrite.cli.url' => 'http://localhost','dbname' => 'nextcloud','dbhost' => 'localhost:/tmp/sockets/mysql.sock','dbport' => '','dbtableprefix' => 'oc_','mysql.utf8mb4' => true,'dbuser' => 'nextcloud','dbpassword' => 'H-QVcITQJ_VwUIO-d8dhYuT-f9Sgwuq8fvebU1vIWtncSt8wbmcxfK7S224o2FG_','installed' => true,'instanceid' => 'oc0k21fy6wpv','maintenance' => false,'mail_from_address' => 'leiweiu','mail_smtpmode' => 'smtp','mail_sendmailmode' => 'smtp','mail_domain' => 'hotmail.com','mail_smtphost' => 'mail.outlook.com','mail_smtpport' => '587','loglevel' => 2,'maintenance_window_start' => 1,
);
这篇关于snap nextcloud 通过不被信任的域名访问的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!