Initial commit
[stratum-mining.git] / conf / config_sample.py
diff --git a/conf/config_sample.py b/conf/config_sample.py
new file mode 100644 (file)
index 0000000..02c7d30
--- /dev/null
@@ -0,0 +1,74 @@
+'''
+This is example configuration for Stratum server.
+Please rename it to settings.py and fill correct values.
+'''
+
+# ******************** GENERAL SETTINGS ***************
+
+# Enable some verbose debug (logging requests and responses).
+DEBUG = False
+
+# Destination for application logs, files rotated once per day.
+LOGDIR = 'log/'
+
+# Main application log file.
+LOGFILE = None#'stratum.log'
+
+# Possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL
+LOGLEVEL = 'INFO'
+
+# How many threads use for synchronous methods (services).
+# 30 is enough for small installation, for real usage
+# it should be slightly more, say 100-300.
+THREAD_POOL_SIZE = 10
+
+ENABLE_EXAMPLE_SERVICE = True
+
+# ******************** TRANSPORTS *********************
+
+# Hostname or external IP to expose
+HOSTNAME = 'localhost'
+
+# Port used for Socket transport. Use 'None' for disabling the transport.
+LISTEN_SOCKET_TRANSPORT = 3333
+
+# Port used for HTTP Poll transport. Use 'None' for disabling the transport
+LISTEN_HTTP_TRANSPORT = None
+
+# Port used for HTTPS Poll transport
+LISTEN_HTTPS_TRANSPORT = None
+
+# Port used for WebSocket transport, 'None' for disabling WS
+LISTEN_WS_TRANSPORT = None
+
+# Port used for secure WebSocket, 'None' for disabling WSS
+LISTEN_WSS_TRANSPORT = None
+
+# Hostname and credentials for one trusted Bitcoin node ("Satoshi's client").
+# Stratum uses both P2P port (which is 8333 already) and RPC port
+BITCOIN_TRUSTED_HOST = 'localhost'
+BITCOIN_TRUSTED_PORT = 8332
+BITCOIN_TRUSTED_USER = 'user'
+BITCOIN_TRUSTED_PASSWORD = 'somepassword'
+
+# Use "echo -n '<yourpassword>' | sha256sum | cut -f1 -d' ' "
+# for calculating SHA256 of your preferred password
+ADMIN_PASSWORD_SHA256 = None
+#ADMIN_PASSWORD_SHA256 = '9e6c0c1db1e0dfb3fa5159deb4ecd9715b3c8cd6b06bd4a3ad77e9a8c5694219' # SHA256 of the password
+
+IRC_NICK = None
+
+'''
+DATABASE_DRIVER = 'MySQLdb'
+DATABASE_HOST = 'localhost'
+DATABASE_DBNAME = 'pooldb'
+DATABASE_USER = 'pooldb'
+DATABASE_PASSWORD = '**empty**'
+'''
+
+# Pool related settings
+INSTANCE_ID = 31
+CENTRAL_WALLET = 'set_valid_addresss_in_config!'
+PREVHASH_REFRESH_INTERVAL = 5 # in sec
+MERKLE_REFRESH_INTERVAL = 60 # How often check memorypool
+COINBASE_EXTRAS = '/stratum/'