mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
feat(environment): Make configurable TP_HOST
and TP_PORT
(#1780)
This commit is contained in:
parent
e4242fc6de
commit
e51e091593
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
# Common params
|
# Common params
|
||||||
|
TP_HOST=example.com
|
||||||
|
TP_PORT=80
|
||||||
APP_ENV=production
|
APP_ENV=production
|
||||||
APP_CRON_ENABLED=true
|
APP_CRON_ENABLED=true
|
||||||
APP_DEMO_MODE=false
|
APP_DEMO_MODE=false
|
||||||
|
|
|
@ -12,8 +12,8 @@ if (!defined('BB_ROOT')) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Server settings
|
// Server settings
|
||||||
$reserved_name = 'example.com';
|
$reserved_name = env('TP_HOST', 'example.com');
|
||||||
$reserved_port = 80;
|
$reserved_port = env('TP_PORT', 80);
|
||||||
|
|
||||||
$bb_cfg = [];
|
$bb_cfg = [];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue