feat(environment): Make configurable TP_HOST and TP_PORT (#1780)

This commit is contained in:
Roman Kelesidis 2025-01-27 19:48:27 +03:00 committed by GitHub
parent e4242fc6de
commit e51e091593
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -1,4 +1,6 @@
# Common params
TP_HOST=example.com
TP_PORT=80
APP_ENV=production
APP_CRON_ENABLED=true
APP_DEMO_MODE=false

View file

@ -12,8 +12,8 @@ if (!defined('BB_ROOT')) {
}
// Server settings
$reserved_name = 'example.com';
$reserved_port = 80;
$reserved_name = env('TP_HOST', 'example.com');
$reserved_port = env('TP_PORT', 80);
$bb_cfg = [];