summarylogtreecommitdiffstats
path: root/electrumx.conf
blob: 7ff5d283dcab54d3d94f3286e14c5decc70cbced (plain)
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
#suggested /etc/electrumx.conf for systemd

#
#REQUIRED
#

    #The folder to store the electrumx database
    DB_DIRECTORY = /srv/electrumx

    #The linux user to run the server under
    USERNAME = electrumx

    #The path to the electrumx binary
    ELECTRUMX = /usr/bin/electrumx-server

    #Bitcoin Node RPC Credentials
    #assumes https://aur.archlinux.org/packages/bitcoin-core/bitcoin.conf
    #port is optional, defaults to COIN RPC default
    DAEMON_URL = http://bitcoin:secret@127.0.0.1:8332/

#
#REQUIRED FOR PUBLIC VISIBILITY
#

    #listen on interface and ports (0.0.0.0 is any)
    HOST = 127.0.0.1
    TCP_PORT = 50001
    SSL_PORT = 50002

    #path to ssl cert and key for enabling ssl support
    SSL_CERTFILE = /etc/electrumx/server.cert
    SSL_KEYFILE = /etc/electrumx/server.pem

#
#OPTIONAL VISIBILITY
#

    #BANNER_FILE = /path/to/banner
    #DONATION_ADDRESS =
    #REPORT_HOST = $HOST
    #REPORT_TCP_PORT =  #defaults to TCP_PORT
    #REPORT_SSL_PORT =  #defaults to SSL_PORT
    #RPC_PORT = 8000

#
#MISC
#
    #lib/coins.py
    COIN = BitcoinSegwit
    NET = mainnet

    #leveldb or rocksdb (You'll need to install appropriate python packages)
    DB_ENGINE = leveldb

    #maximum number of blocks to be able to handle in a chain
    #reorganisation.  ElectrumX retains some fairly compact
    #undo information for this many blocks in levelDB.
    #REORG_LIMIT = 200

    #Set to anything non-empty to remove IP addresses from logs.
    ANON_LOGS = yes


#These following environment variables are to help limit server
#resource consumption and to prevent simple DoS.  Address subscriptions
#in ElectrumX are very cheap - they consume about 100 bytes of memory
#each and are processed efficiently.  I feel the defaults are low and
#encourage you to raise them.

    #Maximum number of address subscriptions across all sessions
    MAX_SUBS = 250000
    #Maximum number of address subscriptions permitted to a single session.
    MAX_SESSION_SUBS = 50000