-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathconfig.js
More file actions
105 lines (98 loc) · 3.94 KB
/
config.js
File metadata and controls
105 lines (98 loc) · 3.94 KB
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
98
99
100
101
102
103
104
105
/***************************
Global Configuration Variables
theme - name of theme to load from http://bootswatch.com (leave blank for no theme)
stylesheet - URL or path to stylesheet to use instead of theme
title - Default <title> for the site
brand - Default text for header brand (logo)
copyright - copyright (current year is auto-filled)
coin - name of the coin for this faucet
symbol - symbol of the coin for this faucet
session_secret - secret needed for Express sessions
show_next_run - set to true to include next run date in left column
show_wallet_balance - set to true to include current wallet balance in left column
------------------------------------------------------
pages - each key holds variables for that page
pages.home.h1 - Main "welcome" text (<H1> tag)
pages.home.faucet_text - Main column text (below H1)
pages.home.payout_header - Text above the payout chart
------------------------------------------------------
rpc - connection info for RPC
rpc.host - IP/hostname for RPC
rpc.port - port for RPC
rpc.user - username for RPC
rpc.pass - password for RPC
rpc.timeout - RPC request timeout (ms)
rpc.ssl - set to true if using SSL for RPC (recommended if not on localhost)
rpc.sslStrict - set to false if using self-signed SSL certificate
rpc.account - name of the account to use in the daemon
------------------------------------------------------
faucet - options for running the faucet
faucet.immediate - pay out immediately if the user/address passes checks
faucet.interval - number of minutes between payouts if immediate=false
faucet.user_limit - maximum number of times to pay a single user (by IP or address)
faucet.payout - a number, array of values with weighted odds, or an object with range (if value is an object, must specify both minimum/maximum)
- object example: {minimum:0.00001,maximum:0.0001}
- array example: [[0.0001,1],[0.00007,3],[0.00005,6],[0.00003,10],[0.00001,20]]
-- In this example, there are 1+3+6+10+20 = 40 chances. 0.00001 has a 50% chance, 0.00003 has a 25% chance, 0.0001 has a 2.5% chance
-- Integers only for chances!
------------------------------------------------------
database - options for local file database
database.processor - filename for db holding processor data
database.users - filename for db holding user data
------------------------------------------------------
dashboard - options for the administrator dashboard
dashboard.path - URL path to use (e.g. /dashboard)
dashboard.password - Password to login
------------------------------------------------------
wallet_explorer_auth - Auth key for walletexplorer.net if you wish to report coin data (walletexplorer helps the community keep their wallets up to date by tracking what versions are in use by public services)
****************************/
module.exports = {
'theme': "darkly"
,'stylesheet': ""
,'title': "Digitalcoin (DGC) Faucet - Get free Digitalcoin every 12 hours!"
,'brand': "Digitalcoin Faucet"
,'copyright': '<a href="http://dgcfoundation.com">DGC Foundation</a>'
,'coin': "Digitalcoin"
,'symbol': "DGC"
,'pages':{
'home':{
'h1':"Digitalcoin (DGC) Faucet"
,'faucet_text':'This faucet automatically pays out Digitalcoin on a schedule. Enter your Digitalcoin address below to receive free DGC. <a href="https://mywl.lt">Need a wallet?</a>'
,'payout_header':'Payout Chances'
}
}
,'session_secret':"_secret_"
,'show_next_payout': false
,'show_wallet_balance': false
,'rpc':{
'host':"localhost"
,'port':4839
,'user':"_username_"
,'pass':"_password_"
,'timeout':30000
,'ssl':false
,'sslStrict':false
,'account':'faucet'
}
,'faucet':{
'immediate':false
,'interval':720 //720 = 12 hours
,'user_limit':6
,'payout':[
[1,50] // 50%
,[2,20] // 20%
,[3,15] // 15%
,[4,10] // 10%
,[5,5] // 5%
]
}
,'database':{
'processor':'processor.db'
,'users':'users.db'
}
,'dashboard':{
'path':'/dashboard'
,'password':'_admin_password_'
}
,'wallet_explorer_auth':''
};