Initial commit
[stratum-mining.git] / conf / config_sample.py
1 '''
2 This is example configuration for Stratum server.
3 Please rename it to settings.py and fill correct values.
4 '''
5
6 # ******************** GENERAL SETTINGS ***************
7
8 # Enable some verbose debug (logging requests and responses).
9 DEBUG = False
10
11 # Destination for application logs, files rotated once per day.
12 LOGDIR = 'log/'
13
14 # Main application log file.
15 LOGFILE = None#'stratum.log'
16
17 # Possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL
18 LOGLEVEL = 'INFO'
19
20 # How many threads use for synchronous methods (services).
21 # 30 is enough for small installation, for real usage
22 # it should be slightly more, say 100-300.
23 THREAD_POOL_SIZE = 10
24
25 ENABLE_EXAMPLE_SERVICE = True
26
27 # ******************** TRANSPORTS *********************
28
29 # Hostname or external IP to expose
30 HOSTNAME = 'localhost'
31
32 # Port used for Socket transport. Use 'None' for disabling the transport.
33 LISTEN_SOCKET_TRANSPORT = 3333
34
35 # Port used for HTTP Poll transport. Use 'None' for disabling the transport
36 LISTEN_HTTP_TRANSPORT = None
37
38 # Port used for HTTPS Poll transport
39 LISTEN_HTTPS_TRANSPORT = None
40
41 # Port used for WebSocket transport, 'None' for disabling WS
42 LISTEN_WS_TRANSPORT = None
43
44 # Port used for secure WebSocket, 'None' for disabling WSS
45 LISTEN_WSS_TRANSPORT = None
46
47 # Hostname and credentials for one trusted Bitcoin node ("Satoshi's client").
48 # Stratum uses both P2P port (which is 8333 already) and RPC port
49 BITCOIN_TRUSTED_HOST = 'localhost'
50 BITCOIN_TRUSTED_PORT = 8332
51 BITCOIN_TRUSTED_USER = 'user'
52 BITCOIN_TRUSTED_PASSWORD = 'somepassword'
53
54 # Use "echo -n '<yourpassword>' | sha256sum | cut -f1 -d' ' "
55 # for calculating SHA256 of your preferred password
56 ADMIN_PASSWORD_SHA256 = None
57 #ADMIN_PASSWORD_SHA256 = '9e6c0c1db1e0dfb3fa5159deb4ecd9715b3c8cd6b06bd4a3ad77e9a8c5694219' # SHA256 of the password
58
59 IRC_NICK = None
60
61 '''
62 DATABASE_DRIVER = 'MySQLdb'
63 DATABASE_HOST = 'localhost'
64 DATABASE_DBNAME = 'pooldb'
65 DATABASE_USER = 'pooldb'
66 DATABASE_PASSWORD = '**empty**'
67 '''
68
69 # Pool related settings
70 INSTANCE_ID = 31
71 CENTRAL_WALLET = 'set_valid_addresss_in_config!'
72 PREVHASH_REFRESH_INTERVAL = 5 # in sec
73 MERKLE_REFRESH_INTERVAL = 60 # How often check memorypool
74 COINBASE_EXTRAS = '/stratum/'