forked from PythonistaGuild/MystBin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-template.json
75 lines (75 loc) · 2.5 KB
/
config-template.json
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
{
"maintenance": false,
"_comment_maintenance": "set this to True to tell the fallback that the server is under maintenance, and not randomly down.",
"database": {
"dsn": "postgresql://<user>:<password>@<IPAddress>:<Port>/<Database>"
},
"redis": {
"_comment": "redis is used for ratelimits. To disable this behaviour, and use in-memory ratelimits, set use-redis to false. Workers will be disabled if this is false.",
"use-redis": true,
"host": "127.0.0.1",
"port": 6379,
"user": null,
"password": null,
"db": 0
},
"apps": {
"discord_application_id": "",
"discord_application_secret": "",
"github_application_id": "",
"github_application_secret": "",
"google_application_id": "",
"google_application_secret": "",
"github_bot_token": ""
},
"bunny_cdn": {
"hostname": "mystbin",
"token": ""
},
"site": {
"frontend_site": "https://mysite.com",
"backend_site": "https://api.mysite.com",
"frontend_port": 4340,
"backend_port": 4341,
"fallback_port": 4342
},
"paste": {
"character_limit": 300000,
"file_limit": 5,
"filesize_limit": "8mb",
"log_ip": true
},
"debug": {
"db": false,
"site": false
},
"sentry": {
"_comment": "Performance and error data via sentry.io. If left blank sentry will be disabled",
"dsn": "",
"_comment_traces": "See Sentry docs for more info.",
"traces_sample_rate": 0.3,
"_commend_webhook": "If filled, and a sentry webhook is configured to mysite.com/callbacks/sentry, will forward all new errors to the webhook",
"discord_webhook": ""
},
"ratelimits": {
"_comment": "Ratelimit values. Written in the format of `time/unit` (60/minute)",
"global": "60/minute",
"authed_global": "120/minute",
"premium_global": "360/minute",
"postpastes": "5/minute",
"authed_postpastes": "10/minute",
"premium_postpastes": "20/minute",
"getpaste": "20/minute",
"authed_getpaste": "40/minute",
"premium_getpaste": "80/minute",
"deletepaste": "1/minute",
"authed_deletepaste": "10/minute",
"premium_deletepaste": "20/minute",
"self": "20/minute",
"tokengen": "2/hour",
"admin": "5/second",
"apps": "5/hour",
"sentry": "10/minute",
"bookmarks": "30/minute"
}
}