-
Notifications
You must be signed in to change notification settings - Fork 29
/
config.example.js
32 lines (30 loc) · 1.56 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
const BTC = 100000000;
const mBTC = 100000;
const config = {
bitcoind: {
host: process.env.BITCOIND_HOST || 'localhost',
port: process.env.BITCOIND_PORT || 38332,
user: process.env.BITCOIND_USER,
pass: process.env.BITCOIND_PASS,
cookie: process.env.BITCOIND_COOKIE,
},
mongoHost: process.env.MONGODB_HOST || 'localhost',
// faucet name (e.g. "Bitcoin Faucet") -- here it is set to Signet Faucet, and above rpcport is
// the default signet port
faucetName: process.env.FAUCET_NAME || "Signet Faucet",
// two options: rate limiting via IP address, OR rate limiting by requiring a pass phrase
// if faucetPassword is unset, IP rate limiting is enforced, otherwise it is not
symbol: process.env.FAUCET_SYMBOL || 'tBTG',
faucetPassword: process.env.FAUCET_PASSWORD,
// several maximums in place to prevent someone from claiming too much too quickly
faucetHourMax: (process.env.FAUCET_HOUR_MAX || 100) * BTC,
faucetDayMax: (process.env.FAUCET_DAY_MAX || 1000) * BTC,
faucetWeekMax: (process.env.FAUCET_WEEK_MAX || 2000) * BTC,
// we will not pay out less than the minimum, and will tell users to wait awhile
faucetMin: (process.env.FAUCET_MIN || 100) * mBTC,
// we expect 10 people to claim coins from the faucet each hour, so we will by default
// send (hour remaining coins)/10 coins, with a lower cap of faucetMin
faucetHourSplit: process.env.FAUCET_HOUR_SPLIT || 10,
debugAllowDirectAccess: (process.env.DEBUG_ALLOW_DIRECT_ACCESS == 'true') || false
};
module.exports = config;