lnbits-legend/lnbits/extensions/subdomains
calle 4fc0a25d41
Mega-merge 4: Reenable LndWallet gRPC and use TrackPaymentV2 (#745)
* readd lndgrpc

* debug logging

* Use TrackPaymentV2

* /v2/router/track

* lnd_router_grpc

* flag for blocking check

* error handling

* fix name

* regtest lndgrpc

* new test pipeline

* fix env

* check for description hash

* remove unnecessary asserts for clarity

* assume that description_hash is a hash already

* no lock

* description hashing in backend

* restore bolt11.py

* /api/v1/payments with hex of description

* comment

* refactor wallets

* forgot eclair

* fix lnpay

* bytes directly

* make format

* mypy check

* make format

* remove old code

* WIP status check

* LND GRPC docs

* restore cln to main

* fix regtest

* import

* remove unused import

* format

* do not expect ok

* check ok

* delete comments
2022-08-09 11:49:39 +02:00
..
templates/subdomains added swagger to extensions 2022-07-27 19:21:04 +01: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 Extension Subdomains: Update crud.py, critical sql error (#481) 2022-01-04 09:56:14 -03:00
migrations.py subdomains untested convert 2021-10-27 22:09:55 +01:00
models.py black 2021-11-12 04:14:55 +00:00
README.md subdomains untested convert 2021-10-27 22:09:55 +01:00
tasks.py python code styling (#739) 2022-07-15 19:11:11 +02:00
util.py general cleanup and unused imports removal 2021-11-25 18:52:16 +00:00
views.py black 2021-11-12 04:14:55 +00:00
views_api.py Mega-merge 4: Reenable LndWallet gRPC and use TrackPaymentV2 (#745) 2022-08-09 11:49:39 +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