In addition to providing arguments on the command-line during program launch, all Emercoin's command-line arguments may be specified in the
emercoin.conf configuration file instead. Arguments given on the command-line override values set in the configuration file. As with Bitcoin, the configuration file is a list of name=value pairs, one per line, with optional comments starting with the # character.
emercoin.conf configuration file is not always automatically created (depending on how you installed Emercoin); you can create it using your favorite plain-text editor. By default, Emercoin (or emercoind) will look for a file named
emercoin.conf in the emercoin data directory, but both the data directory and the configuration file path may be changed using the
-conf command-line arguments.
The default location of emercoin.conf depends on your operating system:
|Operating System||configuration directory|
|Windows Vista, 7, 10||
Note. When installing Docker container, the config file is in Volume (location can be found with docker inspect docker_blockchain_data command)
rpcuser=emccoinrpc rpcpassword=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX listen=1 server=1 rpcallowip=0.0.0.0/0 rpcport=6662 maxconnections=80 gen=0 daemon=1 rpcssl=1 reservebalance=0 rpcsslcertificatechainfile=/etc/ssl/emc/emercoin.crt rpcsslprivatekeyfile=/etc/ssl/emc/emercoin.key rpcsslciphers=HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4:!SSLv2
Note: you may find additional .conf file examples at https://en.bitcoin.it/wiki/Running_Bitcoin