v1.0.0 bug修复更新
This commit is contained in:
30
config.php.example
Normal file
30
config.php.example
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* PerToolBox Front - 配置文件
|
||||
*
|
||||
* Copyright (C) 2024 Sea Network Technology Studio
|
||||
* Author: Canglan <admin@sea-studio.top>
|
||||
* License: AGPL v3
|
||||
*/
|
||||
|
||||
// API 基础地址(后端服务地址)
|
||||
define('API_BASE_URL', getenv('API_BASE_URL') ?: 'http://your-domain/api/v1');
|
||||
|
||||
// 网站名称
|
||||
define('SITE_NAME', 'PerToolBox');
|
||||
|
||||
// 调试模式
|
||||
define('DEBUG', getenv('DEBUG') === 'false');
|
||||
|
||||
// 错误报告
|
||||
if (DEBUG) {
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', 1);
|
||||
} else {
|
||||
error_reporting(0);
|
||||
ini_set('display_errors', 0);
|
||||
}
|
||||
|
||||
// 时区设置
|
||||
date_default_timezone_set('Asia/Shanghai');
|
||||
?>
|
||||
Reference in New Issue
Block a user