diff --git a/.env.example b/.env.example index 5da8c024d..c0776eda9 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,6 @@ # Common params +TP_HOST=example.com +TP_PORT=80 APP_ENV=production APP_CRON_ENABLED=true APP_DEMO_MODE=false diff --git a/library/config.php b/library/config.php index d9aabae98..7cf586bf1 100644 --- a/library/config.php +++ b/library/config.php @@ -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 = [];