This repository has been archived by the owner on Feb 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathconfig.js
97 lines (78 loc) · 2.4 KB
/
config.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
95
96
97
/*
This file is part of XeniumFaucet.
XeniumFaucet is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
XeniumFaucet is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with XeniumFaucet. If not, see <https://www.gnu.org/licenses/>.
*/
module.exports = {
// Filenames for the databases
databases: {
transactions: 'transactions.db',
addresses: 'addresses.db'
},
// WalletAPI configuration
wallet: {
// Set openWallet to true if it should open the wallet configured
openWallet: false,
// The wallet to open
walletToOpen: {
filename: 'faucet',
password: 'faucet',
daemon: {
host: '127.0.0.1',
port: 32779
}
},
// The server the wallet API is running on
host: '127.0.0.1',
port: 32780,
// Password for the wallet API
password: 'faucet',
// Coin configuration
defaultUnlockTime: 35,
defaultMixin: 2,
decimalPlaces: 3,
decimalDivisor: 10 ** 3, // 10 to the power of decimalPlaces
defaultFee: 0.5
},
// Google reCaptcha v2 configuration
recaptcha: {
// Set to true if reCaptcha should be enabled
enabled: false,
// Credentials from reCaptcha's Admin Console
siteKey: 'YOUR SITEKEY',
secretKey: 'YOUR SECRETKEY'
},
// Backend configuration
faucet: {
// The port where the faucet should run on
port: 8909,
// The minimum amount of coins to be sent (in atomic units)
minimumCoinsToBeSent: 1000,
// The maximum amount of coins to be sent (in atomic units)
maximumCoinsToBeSent: 25000,
// Address validation
walletAddressLength: 98,
walletAddressStartsWith: 'XNU',
// Coins are claimable every this many milliseconds
claimableEvery: 24 * 60 * 60 * 1000 // 24 hours
},
// Frontend configuration
frontend: {
// Coin configuration for the frontend
coinName: 'Xenium',
ticker: 'XNU',
// Coin claiming interval as a string
claimableEvery: '24 hours',
// The person this faucet is run by, with Discord Tag
faucetOwner: 'TheDevMinerTV',
faucetOwnerDiscord: 'TheDevMinerTV#4751'
}
}