[Unit] Description=Bitcoin Cash RPC Explorer Wants=bitcoind.service After=bitcoind.service [Service] Type=exec User=explorer Group=explorer WorkingDirectory=/opt/bch-rpc-explorer # Requires systemd 247 or later. Create the source file as root with mode # 0600 and a single username:password pair without a trailing newline. LoadCredential=rpc-cookie:/etc/bch-rpc-explorer/rpc-cookie Environment=BTCEXP_BITCOIND_COOKIE=%d/rpc-cookie Environment=BTCEXP_BITCOIND_HOST=127.0.0.1 Environment=BTCEXP_BITCOIND_PORT=8332 Environment=NODE_ENV=production Environment=BTCEXP_HOST=127.0.0.1 Environment=BTCEXP_PORT=3002 Environment=BTCEXP_UI_SHOW_RPC=false # This upstream setting enables unrestricted RPC whenever it is nonempty. UnsetEnvironment=BTCEXP_RPC_ALLOWALL ExecStart=/usr/bin/node /opt/bch-rpc-explorer/bin/www Restart=on-failure RestartSec=10s NoNewPrivileges=yes PrivateTmp=yes ProtectHome=yes ProtectSystem=strict UMask=0077 [Install] WantedBy=multi-user.target