mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 22:03:49 -07:00
Minor improvements (#823)
This commit is contained in:
parent
69f2509910
commit
9e7038c3f8
1 changed files with 5 additions and 6 deletions
|
@ -12,9 +12,8 @@ if (!defined('BB_ROOT')) {
|
|||
}
|
||||
|
||||
// Server settings
|
||||
$force_name = 'torrentpier.com'; // The domain name from which this board runs
|
||||
$force_port = 80; // The port your server is running on
|
||||
$force_ssl = false;
|
||||
$reserved_name = 'torrentpier.com';
|
||||
$reserved_port = 80;
|
||||
|
||||
$bb_cfg = [];
|
||||
|
||||
|
@ -86,8 +85,8 @@ $bb_cfg['cache'] = [
|
|||
$bb_cfg['datastore_type'] = 'filecache';
|
||||
|
||||
// Server
|
||||
$bb_cfg['server_name'] = $domain_name = !empty($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $force_name; // The domain name from which this board runs
|
||||
$bb_cfg['server_port'] = !empty($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : $force_port; // The port your server is running on
|
||||
$bb_cfg['server_name'] = $domain_name = !empty($_SERVER['SERVER_NAME']) ? $_SERVER['SERVER_NAME'] : $reserved_name;
|
||||
$bb_cfg['server_port'] = !empty($_SERVER['SERVER_PORT']) ? $_SERVER['SERVER_PORT'] : $reserved_port;
|
||||
$bb_cfg['script_path'] = '/'; // The path where FORUM is located relative to the domain name
|
||||
|
||||
// GZip
|
||||
|
@ -356,7 +355,7 @@ $bb_cfg['show_sidebar2_on_every_page'] = false; // Показывать прав
|
|||
|
||||
// Cookie
|
||||
$bb_cfg['cookie_domain'] = in_array($domain_name, [$_SERVER['SERVER_ADDR'], 'localhost'], true) ? '' : ".$domain_name";
|
||||
$bb_cfg['cookie_secure'] = \TorrentPier\Helpers\IsHelper::isHTTPS() ? true : $force_ssl;
|
||||
$bb_cfg['cookie_secure'] = \TorrentPier\Helpers\IsHelper::isHTTPS();
|
||||
$bb_cfg['cookie_prefix'] = 'bb_'; // 'bb_'
|
||||
$bb_cfg['cookie_same_site'] = 'Lax'; // Lax, None, Strict | https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue