Was this page helpful?
Setup VLS Service
Configure Service
Configure the VLS service on the VLSHOST.
Add vls user and group:
sudo /usr/sbin/groupadd vls
sudo /usr/sbin/useradd -g vls -c "Validating Lightning Signer" -m vlsSetup config files:
# become root user
touch /home/vls/.lightning-signer/ALLOWLIST
cp ~/lightning-signer/vls-hsmd/vls/contrib/howto/assets/vlsd.toml /home/vls/.lightning-signer/vlsd.toml
echo "rpc-user = <ADMIN_USER>" >> /home/vls/.lightning-signer/vlsd.toml
echo "rpc-pass = <ADMIN_SERVER_PASSWORD>" >> /home/vls/.lightning-signer/vlsd.tomlCreate ~vls/.lightning-signer/testnet-env:
sudo -u vls bash << 'EOF'
cat > ~vls/.lightning-signer/testnet-env << EOF2
REMOTE_SIGNER_ALLOWLIST=/home/vls/.lightning-signer/ALLOWLIST
VLS_PERMISSIVE=1
EOF2
EOFMake sure vls owns everything:
sudo chown -R vls:vls /home/vls/.lightning-signerInstall systemd unit file:
sudo cp ~/lightning-signer/vls-hsmd/vls/contrib/howto/assets/vls-testnet.service /etc/systemd/system/
sudo systemctl daemon-reloadInstall log rotation config file (edit to suit preferences):
sudo cp ~/lightning-signer/vls-hsmd/vls/contrib/howto/assets/vls-testnet.logrotate /etc/logrotate.d/vls-testnetIf you would like to allow legacy anchor channels (non-zero-fee anchors) you should
add the following line to /home/vls/vlsd.toml:
policy-filter = "policy-channel-safe-type-anchors:warn"Enable the service for automatic start on system boot:
sudo systemctl enable vls-testnetIf you want to start the service now:
sudo systemctl start vls-testnetView status:
sudo systemctl status vls-testnetView logs:
sudo journalctl --follow -u vls-testnetResources
Community
© 2025 VLS Developers