conf.js
file, they can be overridden in your project root's conf.js
and then in conf.json
in the app data folder. The app data folder is:~/Library/Application Support/<appname>
~/.config/<appname>
%LOCALAPPDATA%\<appname>
<appname>
is name
in your package.json
, e.g. headless-obyte
..env.testnet
file 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.testnet
example file then just create a .env
file 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=0
in 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.false
.true
, the default) or not (false
). Set it to false
to 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).socksLocalDNS
to false
to route DNS queries through TOR as well.sendmail
function in mail
module will try to use that, but it is possible to configure your node to use SMTP relay. This way you could use Gmail or Sendmail SMTP server or even something like Mailtrap.io (excellent for testing purposes if you don't want the actual email recipient to receive your test messages). This is how the configuration would look:smtpTransport
can take one of three values:local
: send email using locally installed sendmail
. Normally, sendmail
is 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 smtpPort
if it differs from the default port 25, and smtpUser
and smtpPassword
for 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=4096
command then you should also change the checkDaemonAndNotify
parameter.conf.bNoPassphrase=true
) then you can restart the node automatically when it stops. In order to do that, you could use checkDaemonAndRestart
function, instead of checkDaemonAndNotify
.checkDaemonAndRestart
is the process that gets searched from ps x
command response, the second parameter is a command that will get executed when node has stopped.stdout
and stderr
(>> for appending) to file (headless wallet has logging built-in). If the command uses parameters like --max-old-space-size=4096
then these should be added to both parameters, but output directing (1>log
and 2>>err
) should not be added to first parameter.PATH
and LD_LIBRARY_PATH
to your crontab configuration as well, otherwise crontab might not be able to restart the node.