lnbits / nostrnip5

MIT License
3 stars 3 forks source link

Add redirect path #6

Open motorina0 opened 4 months ago

motorina0 commented 4 months ago

If the LNbits runs on the same domain, then the redirect can be done at the extension level.

https://github.com/lnbits/nostrnip5?tab=readme-ov-file#installation

## Installation

In order for this to work, you need to have ownership of a domain name, and access to a web server that this domain is pointed to. 

Then, you'll need to set up a proxy that points `https://{your_domain}/.well-known/nostr.json` to `https://{your_lnbits}/nostrnip5/api/v1/domain/{domain_id}/nostr.json`

Example nginx configuration
....

The above can (in some cases) be replaced by a nostrnip5_redirect_paths. See the LNURLp example:

lnurlp_redirect_paths = [
    {
        "from_path": "/.well-known/lnurlp",
        "redirect_to_path": "/api/v1/well-known",
    }
]