This repository has been archived by the owner on Dec 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.php.example
executable file
·94 lines (69 loc) · 2.75 KB
/
config.php.example
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
//======= Override Main Module Company Parameters ============
Config::set('main.application_name', 'Cmfive');
Config::set('main.company_name', '2pi Software');
Config::set('main.application_logo', '/system/templates/img/cmfive-logo.png');
Config::set('main.company_url', 'http://2pisoftware.com');
// enter a valid email address
Config::set('main.company_support_email','');
// set this to true to display a big notice bar at the top of each page
Config::set('system.test_mode', false);
Config::set('system.test_mode_message', "You are using a test system");
//=============== Timezone ===================================
Config::set('system.timezone','Australia/Sydney');
//========== Database Configuration ==========================
Config::append("database", array(
"hostname" => "localhost",
"username" => "<username>",
"password" => "<password>",
"database" => "<database>",
"driver" => "mysql"
));
//=========== Email Layer Configuration =====================
Config::append('email', array(
"layer" => "smtp", // smtp or sendmail
"command" => "", // used for sendmail layer only
"host" => "smtp.gmail.com",
"port" => 465,
"auth" => true,
"username" => '<email>',
"password" => '<password>',
));
//========= Anonymous Access ================================
// bypass authentication if sent from the following IP addresses
// specify an IP address and an array of allowed actions from that IP
Config::append("system.allow_from_ip", array(
"10.0.0.0" => array("action1", "action2"),
));
// or bypass authentication for the following modules
Config::append("system.allow_module", array(
// "rest", // uncomment this to switch on REST access to the database objects.
));
// or bypass authentication for the following actions
Config::append('system.allow_action', array(
"auth/login",
"auth/forgotpassword",
"auth/resetpassword",
//"admin/datamigration"
));
//========= REST Configuration ==============================
// check the following configuration carefully to secure
// access to the REST infrastructure.
//===========================================================
// use the API_KEY to authenticate with username and password
Config::set('system.rest_api_key', "abcdefghijklmnopqrstuvwxyz1234567890");
// include class of objects that you want available via REST
// be aware that only the listed objects will be available via
// the REST API
Config::append('system.rest_allow',array(
"User",
"Contact"
));
// Allow for docker deployment changes to added via file
if (file_exists("config.docker.php")) {
include ("config.docker.php");
}
// Allow individual deployments to add config changes via a file
if (file_exists("config.override.php")) {
include ("config.override.php");
}