-
Notifications
You must be signed in to change notification settings - Fork 36
/
test_launch.config.example
92 lines (79 loc) · 4.17 KB
/
test_launch.config.example
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
% This is an example configuration file. Lists are denoted with [...] and tuples
% are denoted with {...}. Together they form a nested structure of names and
% parameters. If you make changes and add or remove options, make sure not to
% have a comma before a closing bracket or curly brace.
[
% SASL is Erlang's internal error and crash logger; it also logs starting
% and stopping of certain processes. I set it to "error" here so it won't
% pollute stdout/stderr.
{sasl, [
{errlog_type, error}
]},
% This is ecoinpool's main configuration. The CouchDB connection is
% configured here.
{ecoinpool, [
% The following commented lines are default settings.
%{db_host, "localhost"},
%{db_port, 5984},
%{db_prefix, ""},
% The next line should be changed, depending on your CouchDB
% authentication settings: username password
{db_options, [{basic_auth, {"ecoinpool", "localtest"}}]},
% Here you can change ecoinpool's HTTP service port, currently used to
% serve global RPC functions used by the frontend.
%{service_port, 8080},
% The last line in this section contains your blowfish secret key, share
% this among your servers and don't tell it to anyone else. Minimum key
% length is 4 bytes, maximum is 56 bytes.
% If you have pwgen (a password generator), try "pwgen -s 56 1" to get
% 56 random characters.
{blowfish_secret, "Replace me!"}
]},
% This is the ebitcoin configuration. ebitcoin forms a separate application,
% thus it doesn't share ecoinpool's database settings. If you use the same
% CouchDB server and authentication, copy it from above.
{ebitcoin, [
% You can also disable ebitcoin altogether by uncommenting the following
% line. Note that you will fall back to the polling system then.
%{enabled, false},
%{db_host, "localhost"},
%{db_port, 5984},
%{db_prefix, ""},
{db_options, [{basic_auth, {"ecoinpool", "localtest"}}]}
]},
% The third separate application (it also has to be started separately) is
% the MySQL Replicator. It is used to bridge legacy MySQL worker tables to
% CouchDB and also stores copies of the shares into a MySQL table.
{ecoinpool_mysql_replicator, [
% Again, commented lines are default settings.
%{couchdb_host, "localhost"},
%{couchdb_port, 5984},
%{couchdb_prefix, ""},
{couchdb_options, [{basic_auth, {"ecoinpool", "localtest"}}]},
%{couchdb_database, "ecoinpool"},
%{mysql_host, "localhost"},
%{mysql_port, 3306},
%{mysql_prefix, ""},
{mysql_options, [{auth, {"ecoinpool", "localtest"}}]},
%{mysql_database, "ecoinpool"},
% This is a setting that certainly has to be changed. Configure one or
% more worker table replicators here (if you have multiple sub-pools).
% Please only connect one sub-pool to one table or things get jammed up.
{replicator_configs, [
% Format: {<ecoinpool sub-pool ID>, <MySQL worker table>, <MySQL sync interval in seconds, 1 or more>}
{"24aa68ec6c910de0850ed0c575621ec9", "pool_worker", 15}
]},
% Next is your blowfish secret key. Copy it from above.
{blowfish_secret, "Replace me!"},
% And the last one, also to be likely changed, is the shares deployer
% configuration. There are two possible formats here, one with and one
% without using merged mining. The config ID is used as basename for
% saving the deployment state file and for the "source" column.
{share_deployer_configs, [
% Non-MM Format: {<config ID string>, <pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
{"ltc_test_shares", "ltc-test", "shares", 60},
% MM Format: {<config ID string>, <main pool name>, <aux pool name>, <MySQL shares table>, <MySQL write interval in seconds, 0 allowed>}
{"btc_nmc_test_shares", "btc-test", "nmc-test", "shares", 60}
]}
]}
].