jack on Nostr: <iframe width="560" height="315" src="" title="YouTube video player" frameborder="0" ...
https://ln.tips is a great wallet. It’s an extremely easy to use, custodial Lightning wallet for the masses. Each telegram account has it’s own @ln.tips
LN Address, but sometimes you want to use your own domain.
In this guide I will teach you how to setup LN Address redirection with your own domain using Cloudflare’s Redirection Rules.
Prerequisites
- A Web Domain that’s has Cloudflare setup on it.
- https://ln.tips setup and ready to go.
- Using ln.tips is optional. This guide will work with any other custodial wallet that provides you with an LN Address will work too.
Setup
Getting your destructured LN Address
ln.tips
Since ln.tips provides two LN addresses to everybody, you have two options.
- Use your Telegram username LN address (Not Recommended)
- This isn’t recommended because anyone can see your Telegram username with this method and use it to message you. It’s the best choice for anonymity from other users.
- ex:
nym@ln.tips
- Use your anonymous LN address (Recommended)
- This is recommended because the address is random, nobody can look this up back to your Telegram account.
- Can be obtained by running
/advanced
to the bot, and finding it under “Anonymous Lightning address”
- ex:
0x84e6b3ea699ab309@ln.tips
What option you pick doesn’t matter to your next step, you’re going to want to take the username portion of the address (everything before the @, like an email address) add
https://ln.tips/.well-known/lnurlp/<username>
username goes at the end.
The final url should look something like https://ln.tips/.well-known/lnurlp/0x84e6b3ea699ab309
(depending on the method you chose)
Custodial Wallets that provide you with a Lightning address work similarly to this.
Apps like Wallet of Satoshi provide you with a completely random address when you sign up, so a Wallet of Satoshi destructured address would look like: https://walletofsatoshi.com/.well-known/lnurlp/LawyerCicanery69
Setting up Cloudflare Redirects
Assuming that you have Cloudflare hooked up and ready to go, you’re going to want to follow a few steps.
- Open your site on the panel
- On the sidebar, click the dropdown arrow next to Rules
- Click “Redirect Rules”
- Press the button that says “Create Rule”
- Configure your new rule
- Give it a name. ex: “lnaddr”
- Configure the first condition
- Set “Field” to
URI Path
- Set “Operator” to
starts with
- Set “Value” to
/.well-known/lnurlp/
- Configure the “then”
- Set “Type” to
Static
- Set “URL” to your destructured Lightning address from earlier
- Set “Status Code” to
307
- Check “Preserve query string”
- Click Save
All done! Now whenever someone goes to pay your new Lightning address, it should automatically redirect to your custodial wallet.
Have fun!
Published at
2023-05-12 00:59:58Event JSON
{
"id": "ad7b75958b4a5e62cad6a31deff6c23d678b31272af6db6a6d025632e68a99ea",
"pubkey": "c5fb6ecc876e0458e3eca9918e370cbcd376901c58460512fe537a46e58c38bb",
"created_at": 1683853198,
"kind": 30023,
"tags": [
[
"client",
"blogstack.io"
],
[
"title",
"How to use your own domain with ln.tips (and any other custodial wallet) on Cloudflare"
],
[
"image",
"https://www.newsbtc.com/wp-content/uploads/2022/01/lightning_network-1-678x381-1.jpg"
],
[
"summary",
"In this guide, I will go over setting up LN Address redirection to the ln.tips wallet. These steps also apply to any other custodial wallet too."
],
[
"t",
"nostr"
],
[
"t",
"bitcoin"
],
[
"t",
"lightning"
],
[
"t",
"cloudflare"
],
[
"d",
"custom-url-custodial-domains"
],
[
"published_at",
"1683853198"
]
],
"content": "\u003ciframe width=\"560\" height=\"315\" src=\"https://www.youtube-nocookie.com/embed/4jdxJpronew\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen\u003e\u003c/iframe\u003e\n\nhttps://ln.tips is a great wallet. It's an extremely easy to use, **custodial** Lightning wallet for the masses. Each telegram account has it's own `@ln.tips` LN Address, but sometimes you want to use your own domain.\n\nIn this guide I will teach you how to setup LN Address redirection with your own domain using [Cloudflare's Redirection Rules](https://developers.cloudflare.com/rules/url-forwarding/).\n\n---\n\n# Prerequisites\n* A Web Domain that's has Cloudflare setup on it.\n* https://ln.tips setup and ready to go.\n\t* Using ln.tips is optional. This guide will work with any other custodial wallet that provides you with an LN Address will work too.\n\n# Setup\n\n## Getting your destructured LN Address\n\n### ln.tips\nSince ln.tips provides two LN addresses to everybody, you have two options.\n1. Use your Telegram username LN address **(Not Recommended)**\n\t1. This *isn't* recommended because anyone can see your Telegram username with this method and use it to message you. It's the best choice for anonymity from other users.\n\t2. ex: `nym@ln.tips`\n2. Use your anonymous LN address **(Recommended)**\n\t1. This *is* recommended because the address is random, nobody can look this up back to your Telegram account.\n\t2. Can be obtained by running `/advanced` to the bot, and finding it under \"Anonymous Lightning address\"\n\t3. ex: `0x84e6b3ea699ab309@ln.tips`\n\nWhat option you pick doesn't matter to your next step, you're going to want to take the username portion of the address (everything before the @, like an email address) add\n`https://ln.tips/.well-known/lnurlp/\u003cusername\u003e` username goes at the end.\n\nThe final url should look something like `https://ln.tips/.well-known/lnurlp/0x84e6b3ea699ab309` (depending on the method you chose)\n\n### Other platforms\nCustodial Wallets that provide you with a Lightning address work similarly to this.\nApps like Wallet of Satoshi provide you with a completely random address when you sign up, so a Wallet of Satoshi destructured address would look like: `https://walletofsatoshi.com/.well-known/lnurlp/LawyerCicanery69`\n\n## Setting up Cloudflare Redirects\nAssuming that you have Cloudflare hooked up and ready to go, you're going to want to follow a few steps.\n1. Open your site on the panel\n2. On the sidebar, click the dropdown arrow next to Rules\n3. Click \"Redirect Rules\"\n4. Press the button that says \"Create Rule\"\n5. Configure your new rule\n\t1. Give it a name. ex: \"lnaddr\"\n\t2. Configure the first condition\n\t\t1. Set \"Field\" to `URI Path`\n\t\t2. Set \"Operator\" to `starts with`\n\t\t3. Set \"Value\" to `/.well-known/lnurlp/`\n\t3. Configure the \"then\"\n\t\t1. Set \"Type\" to `Static`\n\t\t2. Set \"URL\" to your destructured Lightning address from earlier\n\t\t3. Set \"Status Code\" to `307`\n\t\t4. Check \"Preserve query string\"\n6. Click Save\n\nAll done! Now whenever someone goes to pay your new Lightning address, it should automatically redirect to your custodial wallet.\nHave fun!",
"sig": "c813f8a2e9d9b73030ec27bd3053494e9004ca3edd7dbb54eaecdd5c357bf222314799f1aff07876993ebb03e18fe046106a6e99b02c6ae52f0ba31690ce4734"
}