-
Notifications
You must be signed in to change notification settings - Fork 5
/
config-sample.php
82 lines (68 loc) · 2.25 KB
/
config-sample.php
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
<?php
/*
* This is the sample config file. It's intended to stay outside all of the environment folders, like grp_portal.
* You'll probably have to change these. Please don't make your server environment 'S1'.
*/
// Hosts. These are very important and will determine what mode you are even in.
const HOSTS = array(
'PORTAL_HOST'=>'portal-d1.grp.ariankordi.net',
'OFFDEVICE_HOST'=>'grape-d1.ariankordi.net',
'N3DS_HOST'=>null,
'ADMIN_HOST'=>null,
);
/* Environment values.
* "nsslog" can be true or false to indicate NSS being enabled.
* Server type can be 'dev' or 'prod'. Environment can be one letter and then one number, like 'J2' or 'T1'.
*/
const CONFIG_SRV_NAME = 'Grape test server';
// NSS is almost never necessary, don't enable it.
const CONFIG_SRV_NSS = false;
const CONFIG_SRV_TYPE = 1;
// 0 - dev, 1 - prod
const CONFIG_SRV_ENV = 'N1';
// put nnidlt here or whatever
$grp_config_mii_endpoint_prefix = 'https://pf2m.com/hash/';
// If NSS is enabled, then these can be the allowed keys.
$grp_config_nss_keys = array(
''
);
$grp_config_allow_signup = true;
// Database connection info for a MySQL database.
const CONFIG_DB_SERVER = 'localhost:3306';
const CONFIG_DB_USER = 'root';
const CONFIG_DB_PASS = '[password]';
const CONFIG_DB_NAME = 'grape';
// Default protocol for redirects.
$grp_config_recommend_ssl = false;
// Keys; private and public, RSA, raw PEM data.
$grp_config_privkey = <<< END_OF_DATA
-----BEGIN RSA PRIVATE KEY-----
[key]
-----END RSA PRIVATE KEY-----
END_OF_DATA;
$grp_config_pubkey = <<< END_OF_DATA
-----BEGIN PUBLIC KEY-----
[key]
-----END PUBLIC KEY-----
END_OF_DATA;
// reCAPTCHA keys
$grp_config_recaptcha_pubkey = '';
$grp_config_recaptcha_pkey = '';
// Maximum time allowed per one post to the next in seconds.
$grp_config_max_postbuffertime = 2;
// Same as above, but with replies.
$grp_config_max_replybuffertime = 1;
// Allow users to block?
$grp_config_allow_blacklist = true;
// Allow users to post images without permissions?
$grp_config_allow_allimages = false;
// disabled if
$grp_mail_param = array(
'addr' => 'aaaa@ariankordi.net',
'host' => 'tls://smtp.zoho.com',
'IDHost' => 'smtp.zoho.com',
'port' => 465,
'username' => 'aaaa@ariankordi.net',
'password' => 'no',
'auth' => true,
);