From 67db763ec9f2f2e80be560903a69ae95e1a05e08 Mon Sep 17 00:00:00 2001 From: Joel Klabo Date: Sun, 8 Jan 2023 14:23:18 -0800 Subject: [PATCH] Example Caddy Configuration for NIP-05 Extension --- lnbits/extensions/nostrnip5/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lnbits/extensions/nostrnip5/README.md b/lnbits/extensions/nostrnip5/README.md index b8912fa2..2bcbf054 100644 --- a/lnbits/extensions/nostrnip5/README.md +++ b/lnbits/extensions/nostrnip5/README.md @@ -41,4 +41,19 @@ location /.well-known/nostr.json { proxy_cache_valid 200 300s; proxy_cache_use_stale error timeout invalid_header updating http_500 http_502 http_503 http_504; } +``` + +Example Caddy configuration + +``` +my.lnbits.instance { + reverse_proxy {your_lnbits} +} + +nip.5.domain { + route /.well-known/nostr.json { + rewrite * /nostrnip5/api/v1/domain/{domain_id}/nostr.json + reverse_proxy {your_lnbits} + } +} ``` \ No newline at end of file