From 0ffbe5e388e160e21381c2101949d29ca73ec68a Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Fri, 15 Sep 2023 22:45:51 -0500 Subject: Moved lnurld from my general ansible roles repo to the btc specific repo. --- lnurld/server/templates/config.yaml.j2 | 18 ++++++++++++++++++ lnurld/server/templates/lnurld.service.j2 | 21 +++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 lnurld/server/templates/config.yaml.j2 create mode 100644 lnurld/server/templates/lnurld.service.j2 (limited to 'lnurld/server/templates') diff --git a/lnurld/server/templates/config.yaml.j2 b/lnurld/server/templates/config.yaml.j2 new file mode 100644 index 0000000..9377ecd --- /dev/null +++ b/lnurld/server/templates/config.yaml.j2 @@ -0,0 +1,18 @@ +listen: {{lnurld_host}}:{{lnurld_port}} +data-dir: {{lnurld_data_dir}} +credentials: + admin: {{lnurld_admin_pass}} +lnd: + cert-file: {{lnurld_lnd_cert_file}} + macaroon-file: {{lnurld_lnd_invoice_macaroon}} +accounts: +{% for account in lnurld_accounts %} + {{account.name}}: + currency: usd + description: {{account.desc}} + is-also-email: {{account.is_email|default(false)}} + comment-allowed: 210 + min-sendable: 1 + max-sendable: 1_000_000 +{% else %} [] +{% endfor %} diff --git a/lnurld/server/templates/lnurld.service.j2 b/lnurld/server/templates/lnurld.service.j2 new file mode 100644 index 0000000..499fdba --- /dev/null +++ b/lnurld/server/templates/lnurld.service.j2 @@ -0,0 +1,21 @@ +[Unit] +Description=LNURL Daemon +Wants=lnd.service +After=lnd.service + +[Service] +Environment="GIN_MODE=release" +ExecStart=/usr/local/bin/lnurld + +User={{lnurld_user}} +Group={{lnurld_user}} + +Type=simple +KillMode=process +LimitNOFILE=128000 +TimeoutSec=240 +Restart=always +RestartSec=60 + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3