src.nth.io/

summaryrefslogtreecommitdiff
path: root/lnd/templates
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-04-27 11:17:52 -0500
committerLuke Hoersten <[email protected]>2020-04-27 11:17:52 -0500
commit99575d0d007feb9ba97109be94e7ee5230bb40ce (patch)
treededb43d697647753ee76a554c5d8edcbb0731e87 /lnd/templates
Initial commit of btcd and lnd roles.
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