-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.example.php
193 lines (155 loc) · 5.22 KB
/
config.example.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?php
/**
* rverse2 Configuration File.
*/
return [
// Database configuration according to https://laravel.com/docs/5.2/database#introduction
// Put some here in advance, uncomment the one you need.
'database' => [
// MySQL
'driver' => 'mysql',
'host' => 'localhost',
'port' => 3306,
'username' => 'root',
'password' => '',
'prefix' => '',
'database' => 'rverse2_dev',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
],
// General site settings
'general' => [
// Name of the site
'name' => 'rverse2',
// Default logo of the site (empty for the default)
'logo' => '',
// Description of the site
'description' => 'rverse is a Miiverse clone for 3DS, Wii U and PC!',
// Close the site for maintenance
'maintenance' => false,
// Date formatting string
'date_format' => 'D Y/m/d g:i A T',
// Hashids salt (prevents stuff from getting scraped easily)
'link_salt' => 'changethis',
// Image domain for avatars and images
'image_url' => 'http://images.example.com',
],
// Cloudinary settings
'cloudinary' => [
// Cloudinary cloud name
'cloud_name' => '',
// Cloudinary API key
'api_key' => '',
// Cloudinary API secret
'api_secret' => '',
// Mii images preset
'mii_preset' => '',
// Drawings preset
'drawings_preset' => '',
// Screnshots preset
'image_preset' => '',
],
// Nintendo API settings
'nintendo' => [
// Client ID
'client_id' => '',
// Client secret
'client_secret' => '',
// Client Certificate
'client_cert' => path('file.crt.pem'),
// Client Certificate Key
'client_cert_key' => path('file.key.pem'),
],
// Cookie settings
'cookie' => [
'prefix' => 'rverse_',
],
// Performance settings
'performance' => [
// Compress output using gzip, recommended to turn this off while debugging
'compression' => true,
// Cache directory
'cache_dir' => path('store/cache/'),
// Enable template caching
'template_cache' => true,
],
// Development specific settings
'dev' => [
// Show detailed error logs in browser
'show_errors' => false,
// Enable twig (the templating engine) debug mode
'twig_debug' => false,
// Host for the topia dev:serve command
'host' => 'localhost:8000',
// Reporting host address
'report_host' => '',
],
// Discord reporting settings
'discord' => [
'accounts' => '',
'posts' => '',
'reports' => '',
'moderation' => '',
],
// User settings
'user' => [
// Minimum entropy value a password needs to have
'pass_min_entropy' => 1,
// Username constraints
'name_min' => 3,
'name_max' => 16,
// Disable registration, just in case
'disable_signups' => true,
// Require the user to click a link in an e-mail sent to them
'require_activation'=> true,
// How long a username should be reserved in days
'name_reserve' => 90,
// How long a user should be inactive till another person can use their name
'name_takeover' => 365,
],
// Donation settings
'dontation' => [
'max_monts' => 24,
'price_per_month' => 5.00,
'price_unit' => 'USD',
],
// PayPal settings
'paypal' => [
'mode' => 'sandbox',
'client_id' => '',
'secret_id' => '',
],
// Ranks ids, these ranks are used by automated procedures in the backend
// If you're using the setup command in topia, these are already set correctly for you!
'rank' => [
'regular' => 1,
'verified' => 2,
'bot' => 3,
'donator' => 4,
'alumni' => 5,
'mod' => 6,
'admin' => 7,
'banned' => 8,
],
// Comment settings
'comments' => [
'max_length' => 5000,
'min_length' => 1,
'daily_limit' => 30,
],
// Separate websites with its own routes
'sites' => [
'3ds' => ['3ds.example.com', '3ds.example2.com'],
'wiiu' => [],
'web' => [],
'pub' => [],
'admin' => [],
],
// Admin panel settings
'admin' => [
'discord_client' => '',
'discord_secret' => '',
'discord_scopes' => ['identify', 'guilds'],
'discord_ids' => [],
],
];