lnbits-legend/lnbits/extensions/subdomains
Pavol Rusnak a089188664
add pyright to the project (#1367)
* add pyright to project + bump prettier to latest

* reformat to match the latest prettier rules
2023-01-23 10:29:17 +01:00
..
static/image Tile size standard should be 128px 2023-01-03 20:05:44 +00:00
templates/subdomains add pyright to the project (#1367) 2023-01-23 10:29:17 +01:00
__init__.py All extension icons swapped for logo tiles 2022-12-31 14:15:23 +00:00
cloudflare.py refactor: use relative imports for own module 2023-01-10 09:44:52 +02:00
config.json Updated extension card layout 2023-01-01 18:14:20 +00: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 removing type: ignore from Query, Depends, Body and import them correctly 2023-01-02 11:56:28 +01:00
README.md Corrected casing of LNbits (not LNBits) throughout repo 2022-11-30 14:14:31 +00:00
tasks.py refactor: remove redundant # type: ignore 2023-01-10 09:45:12 +02:00
util.py general cleanup and unused imports removal 2021-11-25 18:52:16 +00:00
views_api.py refactor: use relative imports for own module 2023-01-10 09:44:52 +02:00
views.py removing type: ignore from Query, Depends, Body and import them correctly 2023-01-02 11:56:28 +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