<?php
if (isset($_SERVER['SERVER_NAME'])) {
$tenancy_url = $_SERVER['SERVER_NAME'];
$tenancy_url_filter = array('discuss.flarum.org', 'english.flarum.org', 'spanish.flarum.org', 'french.flarum.org');
}
return array (
'debug' => false,
'database' =>
array (
'driver' => 'mysql',
'host' => 'localhost',
'database' => 'dbname',
'username' => 'dbusername',
'password' => 'dbpassword',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => 'flarumprefix_',
'port' => '3306',
'strict' => false,
),
'url' => 'https://' . (isset($_SERVER['SERVER_NAME']) && in_array($tenancy_url, $tenancy_url_filter) ? $tenancy_url : 'discuss.flarum.org'),
);
修改 $tenancy_url_filter
和 'url'
中的域名即可