From 945b0f3001d828a0e9f993dc522c8475ebde427a Mon Sep 17 00:00:00 2001
From: ben
Date: Thu, 29 Dec 2022 23:08:48 +0000
Subject: [PATCH 1/3] Added docs to extension
---
.../templates/nostrnip5/_api_docs.html | 66 ++++++++++++++++++-
.../nostrnip5/templates/nostrnip5/index.html | 6 ++
2 files changed, 71 insertions(+), 1 deletion(-)
diff --git a/lnbits/extensions/nostrnip5/templates/nostrnip5/_api_docs.html b/lnbits/extensions/nostrnip5/templates/nostrnip5/_api_docs.html
index 17197d5a6..a3f91201f 100644
--- a/lnbits/extensions/nostrnip5/templates/nostrnip5/_api_docs.html
+++ b/lnbits/extensions/nostrnip5/templates/nostrnip5/_api_docs.html
@@ -1,9 +1,73 @@
+
+
+
+ Usage
+
+ 1. Create a Domain by clicking "NEW DOMAIN"\
+ 2. Fill the options for your DOMAIN
+ - select the wallet
+ - select the fiat currency the invoice will be denominated in
+ - select an amount in fiat to charge users for verification
+ - enter the domain (or subdomain) you want to provide verification
+ for
+ 3. You can then use share your signup link with your users to allow them
+ to sign up *Note, you must own this domain and have access to a web
+ server*
+
+ 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
+
+
+
+
+
+ proxy_cache_path /tmp/nginx_cache keys_zone=nip5_cache:5m
+ levels=1:2 inactive=300s max_size=100m use_temp_path=off;
+
+ location /.well-known/nostr.json {
+ proxy_pass
+ https://{your_lnbits}/nostrnip5/api/v1/domain/{domain_id}/nostr.json;
+ proxy_set_header Host {your_lnbits};
+ proxy_ssl_server_name on;
+
+ expires 5m;
+ add_header Cache-Control "public,
+ no-transform";
+
+ proxy_cache nip5_cache;
+ proxy_cache_lock on;
+ proxy_cache_valid 200 300s;
+ proxy_cache_use_stale error timeout
+ invalid_header updating http_500 http_502 http_503 http_504;
+ }
+
+
+
+
+
+
+
+
+
+
diff --git a/lnbits/extensions/nostrnip5/templates/nostrnip5/index.html b/lnbits/extensions/nostrnip5/templates/nostrnip5/index.html
index e6544d62a..b1459ee3e 100644
--- a/lnbits/extensions/nostrnip5/templates/nostrnip5/index.html
+++ b/lnbits/extensions/nostrnip5/templates/nostrnip5/index.html
@@ -163,6 +163,12 @@
{{SITE_TITLE}} Nostr NIP-5 extension
+
+ Allow users to NIP-05 verify themselves at a domain you
+ control
+
From 065d09df428fbf41f8f65317977462a693de0510 Mon Sep 17 00:00:00 2001
From: ben
Date: Thu, 29 Dec 2022 23:13:56 +0000
Subject: [PATCH 2/3] Little legal disclaimer
---
lnbits/extensions/nostrnip5/templates/nostrnip5/signup.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnbits/extensions/nostrnip5/templates/nostrnip5/signup.html b/lnbits/extensions/nostrnip5/templates/nostrnip5/signup.html
index 78be5db1c..560a09b10 100644
--- a/lnbits/extensions/nostrnip5/templates/nostrnip5/signup.html
+++ b/lnbits/extensions/nostrnip5/templates/nostrnip5/signup.html
@@ -39,7 +39,7 @@ context %} {% block page %}
{{ "{:0,.2f}".format(domain.amount / 100) }} {{ domain.currency }}
- for a lifetime account.
+ for an account (if you do not own the domain, the service provider can disable at any time).
After submitting payment, your address will be
From ba8b2f33d0cc5fc6acddc404670ae721becb1dc6 Mon Sep 17 00:00:00 2001
From: ben
Date: Thu, 29 Dec 2022 23:27:50 +0000
Subject: [PATCH 3/3] format
---
lnbits/extensions/nostrnip5/templates/nostrnip5/signup.html | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lnbits/extensions/nostrnip5/templates/nostrnip5/signup.html b/lnbits/extensions/nostrnip5/templates/nostrnip5/signup.html
index 560a09b10..6ac9f999d 100644
--- a/lnbits/extensions/nostrnip5/templates/nostrnip5/signup.html
+++ b/lnbits/extensions/nostrnip5/templates/nostrnip5/signup.html
@@ -39,7 +39,8 @@ context %} {% block page %}
{{ "{:0,.2f}".format(domain.amount / 100) }} {{ domain.currency }}
- for an account (if you do not own the domain, the service provider can disable at any time).
+ for an account (if you do not own the domain, the service provider can
+ disable at any time).
After submitting payment, your address will be