forked from tmpim/Krist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.js
executable file
·94 lines (71 loc) · 2.23 KB
/
config.example.js
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
var config = {};
/*
* DATABASE SETUP
*/
// For more information see: http://sequelize.readthedocs.org/en/latest/api/sequelize/
// The hostname of your database server.
config.databaseHost = 'localhost';
// The name of the database
config.databaseDB = 'example';
// The user used to authenticate against the database
config.databaseUser = 'example';
// The password used to authenticate against the database
config.databasePass = 'example';
// The dialect used to connect, one of: mysql, postgres, mariadb or mssql. (sqlite not supported, fuck you Taras!)
config.databaseDialect = 'mysql';
/*
* REDIS SETUP
*/
// The hostname of the redis server
config.redisHost = '127.0.0.1';
// The port used to connect to redis
config.redisPort = 6379;
// String to prefix to all redis keys
config.redisPrefix = 'krist';
/*
* WEBSERVER SETUP
*/
// The sock file for your server. Proxy this to nginx.
config.serverSock = '/var/krist/krist.sock';
// Configuration of the rate limiter. See: https://github.com/nfriedly/express-rate-limit
config.rateLimitSettings = {
windowMs: 60000,
delayAfter: 240,
delayMs: 5,
max: 320,
message: 'Rate limit hit. Please try again later.'
};
// The URL at which websockets should be connected from
config.websocketURL = 'wss://krist.ceriat.net';
/*
* KRIST SPECIFIC
*/
// The latest version of KristWallet
config.walletVersion = 13;
// The maximum length of a submitted nonce
config.nonceMaxSize = 24;
// The cost to buy a domain name
config.nameCost = 500;
// The minimum work
config.minWork = 500;
// The maximum work
config.maxWork = 100000;
// The growth factor for the work
config.workFactor = 0.1;
// How long it should take to mine a block in seconds
config.secondsPerblock = 60;
// The max amount of webhooks per domain name
config.maxWebsocketsPerHost = 6;
// Lefthand label for badges
config.badgeLabelLeft = 'krist';
// Righthand label for badges
config.badgeLabelRight = 'verified';
// Colour used as badge
config.badgeColour = 'green';
// A list of verified servers for /badge
config.badgeVerifiedServers = [
'example'
];
// Temporary while developing
config.websocketsEnabled = true;
module.exports = config;