-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php.example
More file actions
36 lines (31 loc) · 894 Bytes
/
Copy pathconfig.php.example
File metadata and controls
36 lines (31 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
### Basic config.php example
const siteAddress = "example.com";
const base = "/AreaCore";
const siteVersion = "v1.2.3";
const developMode = 1;
$DB_Config = array(
'mode'=>'mysql',
'hostname'=>'localhost',
'port'=>'3306',
'username'=>'root',
'password'=>'',
'dbname'=>'areacore'
);
ini_set("memory_limit", "2048M");
ini_set("post_max_size", "1024M");
ini_set("upload_max_filesize", "1024M");
### If you want set automatically across file name, Use bellow in Apache
/*
if (!defined('base')){
define('base', str_replace('/index.php', '', $_SERVER['SCRIPT_NAME']));
}
if (!defined('siteAddress')){
define('siteAddress', (@$_SERVER['HTTP_X_FORWARDED_HOST']?:@$_SERVER['HTTP_HOST']).base);
}
*/
### If you are using docker or caddy and want to configuration from .ENV
/*
define('base', getenv('APP_BASE'));
define('siteAddress', getenv('SITE_ADDRESS'));
*/