lnbits-legend/lnbits/extensions/subdomains
2022-11-30 14:14:31 +00:00
..
templates/subdomains subdomains docs fix: #900 (#904) 2022-08-18 10:17:32 +02:00
__init__.py black 2021-11-12 04:14:55 +00:00
cloudflare.py make format everything (#743) 2022-07-16 14:23:03 +02:00
config.json subdomains untested convert 2021-10-27 22:09:55 +01:00
crud.py fix mypy for extensions (#873) 2022-10-24 16:29:30 +02:00
migrations.py subdomains untested convert 2021-10-27 22:09:55 +01:00
models.py fix mypy for extensions (#873) 2022-10-24 16:29:30 +02:00
README.md Corrected casing of LNbits (not LNBits) throughout repo 2022-11-30 14:14:31 +00:00
tasks.py fix mypy for extensions (#873) 2022-10-24 16:29:30 +02:00
util.py general cleanup and unused imports removal 2021-11-25 18:52:16 +00:00
views_api.py fix raise error on delete request 2022-11-17 14:47:52 +02:00
views.py fix mypy for extensions (#873) 2022-10-24 16:29:30 +02:00

Subdomains Extension

So the goal of the extension is to allow the owner of a domain to sell subdomains to anyone who is willing to pay some money for it.

video tutorial livestream

Requirements

  • Free Cloudflare account
  • Cloudflare as a DNS server provider
  • Cloudflare TOKEN and Cloudflare zone-ID where the domain is parked

Usage

  1. Register at Cloudflare and setup your domain with them. (Just follow instructions they provide...)

  2. Change DNS server at your domain registrar to point to Cloudflare's

  3. Get Cloudflare zone-ID for your domain

  4. Get Cloudflare API TOKEN

  5. Open the LNbits subdomains extension and register your domain

  6. Click on the button in the table to open the public form that was generated for your domain

    • Extension also supports webhooks so you can get notified when someone buys a new subdomain

API Endpoints

  • Domains
    • GET /api/v1/domains
    • POST /api/v1/domains
    • PUT /api/v1/domains/<domain_id>
    • DELETE /api/v1/domains/<domain_id>
  • Subdomains
    • GET /api/v1/subdomains
    • POST /api/v1/subdomains/<domain_id>
    • GET /api/v1/subdomains/<payment_hash>
    • DELETE /api/v1/subdomains/<subdomain_id>

Cloudflare