src.nth.io/

summaryrefslogtreecommitdiff
path: root/lnd/templates
diff options
context:
space:
mode:
Diffstat (limited to 'lnd/templates')
-rw-r--r--lnd/templates/lnd.conf.j217
-rw-r--r--lnd/templates/lnd.service.j218
2 files changed, 35 insertions, 0 deletions
diff --git a/lnd/templates/lnd.conf.j2 b/lnd/templates/lnd.conf.j2
new file mode 100644
index 0000000..920a504
--- /dev/null
+++ b/lnd/templates/lnd.conf.j2
@@ -0,0 +1,17 @@
+[Application Options]
+datadir={{lnd_data_dir}}
+logdir={{lnd_log_dir}}
+
+alias={{lnd_alias}}
+; color=#3399FF
+
+tlsextradomain={{lnd_alias}}
+rpclisten=0.0.0.0:10009
+externalip={{lnd_external_ip}}
+
+debuglevel=trace
+
+[Bitcoin]
+bitcoin.mainnet=true
+bitcoin.active=true
+bitcoin.node={{lnd_bitcoin_node}}
diff --git a/lnd/templates/lnd.service.j2 b/lnd/templates/lnd.service.j2
new file mode 100644
index 0000000..1e826ca
--- /dev/null
+++ b/lnd/templates/lnd.service.j2
@@ -0,0 +1,18 @@
+[Unit]
+Description=lnd
+Wants=btcd.service
+After=btcd.service
+
+[Service]
+ExecStart=/usr/local/bin/lnd
+User={{lnd_user}}
+Restart=on-failure
+
+PrivateTmp=true
+ProtectSystem=full
+NoNewPrivileges=true
+PrivateDevices=true
+MemoryDenyWriteExecute=true
+
+[Install]
+WantedBy=multi-user.target