Use your own domain as lightning address
How to use your Alby lightning address with own domain?
Prerequisites
An active Alby Account with a lightning address (can be free or paid)
Your own domain with web hosting access
Ability to upload files to your domain's root directory
Steps
1. Get your Alby lightning address configuration
Open your browser and go to
https://getalby.com/.well-known/lnurlp/YOUR_ALBY_USERNAME
Replace
YOUR_ALBY_USERNAME
with your acrtual Alby usernameSave the page (Ctrl+S or Cmd+S) to download the JSON configuration file
2. Prepare the configuration file
Remove the file extension from the downloaded file (e.g. json)
Example: If you want
[email protected]
rename the file to justpayments
(no extension)
3. Verify the configuration content
Your file should contain JSON similar to this
{
"status": "OK",
"tag": "payRequest",
"commentAllowed": 255,
"callback": "https://getalby.com/lnurlp/YOUR_USERNAME/callback",
"metadata": "[[\"text/identifier\",\"[email protected]\"],[\"text/plain\",\"Sats for Alby\"]]",
"minSendable": 1000,
"maxSendable": 11000000000,
"payerData": {
"name": {
"mandatory": false
},
"email": {
"mandatory": false
},
"pubkey": {
"mandatory": false
}
},
"nostrPubkey": "your_nostr_pubkey_here",
"allowsNostr": true
}
4. Upload to your own domain
Upload the file to your domain's root directory at this specific path
https://yourdomain.com/.well-known/lnurlp/FILENAME
Important: Your domain must be accessible without
www
(hosted on the root domain)
5. Example setup
Let's say you want to create [email protected]
Download the configuration from:
https://getalby.com/.well-known/lnurlp/alice
Rename the file to
payments
(no extension)Upload to
https://example.com/.well-known/lnurlp/payments
6. Test your setup
Check the URL: Open
https://yourdomain.com/.well-known/lnurlp/FILENAME
in your browserTest a payment: Try sending a small payment to your new lightning address
Verify receipt: Confirm the payment arrives in your wallet
Troubleshooting
404 Error: Check that the file is uploaded to the correct
.well-known/lnurlp/
directoryPayment fails: Verify the
"callback"
URL in your JSON file matches your Alby usernameDomain issues: Ensure your domain works without
www
prefix
✅ That's it. You just turned your own domain into a lightning address! 🙌
Last updated
Was this helpful?