conf.jsfile, they can be overridden in your project root's
conf.jsand then in
conf.jsonin the app data folder. The app data folder is:
.env.testnetfile in their root folder. In order to connect use testnet network, just run
cp .env.testnet .env. Backup and delete the database if you already ran it on MAINNET. Wallet app for TESTNET can be downloaded from Obyte.org website.
.env.testnetexample file then just create a
.envfile that contains this row:
null, which is the default. If you do want to listen, you will usually have a proxy, such as nginx, accept websocket connections on standard port 443 and forward them to your Obyte daemon that listens on port 6611 on the local interface.
innodb_flush_log_at_trx_commit=0in your MySQL server config file (my.ini)
true) or full node (
false). The default is full client. Light node only holds data that is relevant to your wallet, full node sync all the data in public database. Benefit of light node is that you can start using it immediately, but the downside is that you might not get updates about new transactions and confirmations as fast as full node does.
true, the default) or not (
false). Set it to
falseto run your node in stealth mode so that only trusted peers can see its IP address (e.g. if you have online wallets on your server and don't want potential attackers to learn its IP).
falseto route DNS queries through TOR as well.
smtpTransportcan take one of three values:
local: send email using locally installed
sendmailis not installed by default and when installed, it needs to be properly configured to actually send emails. If you choose this option, no other conf settings are required for email. This is the default option.
direct: send email by connecting directly to the recipient's SMTP server. This option is not recommended.
relay: send email through a relay server, like most email apps do. You need to also configure the server's host
smtpRelay, its port
smtpPortif it differs from the default port 25, and
smtpPasswordfor authentication to the server.
--max_old_space_size=<size>to the launch command where size is the amount in MB you want to allocate.
--max-old-space-size=4096, if your server has at least 4GB available.
node start.js --max-old-space-size=4096command then you should also change the
conf.bNoPassphrase=true) then you can restart the node automatically when it stops. In order to do that, you could use
checkDaemonAndRestartfunction, instead of
checkDaemonAndRestartis the process that gets searched from
ps xcommand response, the second parameter is a command that will get executed when node has stopped.
stderr(>> for appending) to file (headless wallet has logging built-in). If the command uses parameters like
--max-old-space-size=4096then these should be added to both parameters, but output directing (
2>>err) should not be added to first parameter.
LD_LIBRARY_PATHto your crontab configuration as well, otherwise crontab might not be able to restart the node.