lnbits-legend/lnbits/extensions/subdomains
2021-08-22 12:16:31 +01:00
..
templates/subdomains Put extensions back so we can start converting 2021-08-20 12:44:03 +01:00
__init__.py Put extensions back so we can start converting 2021-08-20 12:44:03 +01:00
cloudflare.py Put extensions back so we can start converting 2021-08-20 12:44:03 +01:00
config.json Put extensions back so we can start converting 2021-08-20 12:44:03 +01:00
crud.py Put extensions back so we can start converting 2021-08-20 12:44:03 +01:00
migrations.py Put extensions back so we can start converting 2021-08-20 12:44:03 +01:00
models.py Added pydantic to models 2021-08-20 14:46:08 +01:00
README.md Put extensions back so we can start converting 2021-08-20 12:44:03 +01:00
tasks.py Put extensions back so we can start converting 2021-08-20 12:44:03 +01:00
util.py Put extensions back so we can start converting 2021-08-20 12:44:03 +01:00
views_api.py some syntax refactoring 2021-08-22 12:16:31 +01:00
views.py Converted views 2021-08-21 01:55:07 +01: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