diff options
| author | Adam Soltys <[email protected]> | 2022-10-06 03:22:11 +0000 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-10-06 03:22:11 +0000 |
| commit | 397e77d8fec8f7455919468a98a8292b2de78228 (patch) | |
| tree | 02e4c7b8a0821e7bdc947f0903a16f26a0c87ec2 /routes/lnurl.js | |
| parent | fb91aa048617f0894e01c1e890ec957a3170539f (diff) | |
| download | coinos-server-397e77d8fec8f7455919468a98a8292b2de78228.tar.gz coinos-server-397e77d8fec8f7455919468a98a8292b2de78228.zip | |
env vars
Diffstat (limited to 'routes/lnurl.js')
| -rw-r--r-- | routes/lnurl.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/routes/lnurl.js b/routes/lnurl.js index 6ca61c93..683899b0 100644 --- a/routes/lnurl.js +++ b/routes/lnurl.js @@ -30,6 +30,8 @@ const recipients = persist("data/recipients.json"); const lnurlPayments = persist("data/payments.json"); const withdrawals = persist("data/withdrawals.json"); +const { HOSTNAME: hostname } = process.env; + export const lnurlServer = lnurl.createServer(config.lnurl); app.get("/url", async (req, res, next) => { @@ -226,7 +228,7 @@ app.post("/pay", auth, async (req, res, next) => { memo: comment, username: recipients[secret].username }, - req.hostname, + hostname, user ); |
