-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.php
83 lines (73 loc) · 2.81 KB
/
config.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
<?php
$config["title"] = "Xenooru";
$config["slogan"] = "Booru made simple";
$config["logo"] = "logo.png";
$config["chibi"] = "chibi.png";
$config["logs"] = true; // Keep logs of actions?
$config["debug"] = true;
// Emails
$config["email"]["general"] = "hello@domain.com"; // Leave empty to hide it
$config["email"]["info"] = "info@domain.com"; // Leave empty to hide it
// Captcha
$config["captcha"]["enabled"] = false;
$config["captcha"]["type"] = "hcaptcha";
$config["captcha"]["hcaptcha"]["secret"] = "";
$config["captcha"]["hcaptcha"]["sitekey"] = "";
// Upload
$config["upload"]["max"] = 22020096; // in Bytes, 21mb is a tribute to 21Alex, old friend. help: https://www.gbmb.org/mb-to-bytes
$config["upload"]["allowed"]["img"] = array(
".jpg",
".jpeg",
".gif",
".png",
".webp",
);
$config["upload"]["allowed"]["video"] = array(
".mp4",
".webm",
".ogv",
".avi",
".mkv",
);
$config["upload"]["min"] = 5; // Min amount of tags on new/existing post
// Thumbnails
$config["thumbnail"]["enabled"] = true; // Requires Imagick, generation will keep aspect ratio!
$config["thumbnail"]["width"] = "350"; // Pixel, max-width for generation
$config["thumbnail"]["height"] = "250"; // Pixel, max-height for generation
$config["thumbnail"]["blacklisted"] = "assets/img/nothing.png";
// Default-Variablen
$config["default"]["theme"] = "eve";
$config["default"]["lang"] = "en";
$config["default"]["level"] = 49;
// X Elemente von Y pro Seite
$config["perpage"]["users"] = 50;
$config["perpage"]["posts"] = 36;
$config["perpage"]["comments"] = 50;
$config["perpage"]["announcements"] = 50;
$config["perpage"]["tags"] = 100;
$config["perpage"]["terms"] = 100;
// Other
$config["minlength"]["comment"] = 10;
// Diese Software nutzt Smarty als Template-Engine. Dokumentation: https://smarty-php.github.io/smarty/
$config["smarty"]["template"] = __DIR__ . "/library/templates/"; // Dies muss mit einen Schrägstriche enden!
$config["smarty"]["config"] = __DIR__ . "/library/smarty/config";
$config["smarty"]["compile"] = __DIR__ . "/library/smarty/compile";
$config["smarty"]["cache"] = __DIR__ . "/library/smarty/cache";
// Diese Software nutzt SleekDB als Datenbank. Dokumentation: https://sleekdb.github.io/
$config["db"]["thumbs"][0] = "community/thumbs"; // in /public/
$config["db"]["thumbs"][1] = __DIR__ . "/public/community/thumbs";
$config["db"]["uploads"][0] = "community/uploads"; // in /public/
$config["db"]["uploads"][1] = __DIR__ . "/public/community/uploads";
$config["db"]["path"] = __DIR__ . "/database";
$config["db"]["config"] = array(
"auto_cache" => true,
"cache_lifetime" => null,
"timeout" => false, // deprecated! Set it to false!
"primary_key" => "_id",
"search" => [
"min_length" => 2,
"mode" => "and",
"score_key" => "scoreKey"
],
"folder_permissions" => 0777
);