mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 10:37:30 -07:00
Get SERVER_NAME variable for cron tasks (#1190)
This commit is contained in:
parent
b88637842f
commit
dd5471ef6a
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ if (empty($_SERVER['HTTP_REFERER'])) {
|
|||
$_SERVER['HTTP_REFERER'] = '';
|
||||
}
|
||||
if (empty($_SERVER['SERVER_NAME'])) {
|
||||
$_SERVER['SERVER_NAME'] = '';
|
||||
$_SERVER['SERVER_NAME'] = getenv('SERVER_NAME');
|
||||
}
|
||||
if (empty($_SERVER['SERVER_ADDR'])) {
|
||||
$_SERVER['SERVER_ADDR'] = getenv('SERVER_ADDR');
|
||||
|
|
|
@ -12,7 +12,7 @@ if (!defined('BB_ROOT')) {
|
|||
}
|
||||
|
||||
// Server settings
|
||||
$reserved_name = 'torrentpier.com'; // Use your domain name for auto-generated atom feeds
|
||||
$reserved_name = 'torrentpier.com';
|
||||
$reserved_port = 80;
|
||||
|
||||
$bb_cfg = [];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue