From 4f39dce2061c8ae5b1d0930cec1b68d02d3a4f81 Mon Sep 17 00:00:00 2001 From: Lee Salminen Date: Wed, 21 Dec 2022 15:17:28 -0600 Subject: [PATCH] update readme --- lnbits/extensions/nostrnip5/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lnbits/extensions/nostrnip5/README.md b/lnbits/extensions/nostrnip5/README.md index 3117ab999..b8912fa22 100644 --- a/lnbits/extensions/nostrnip5/README.md +++ b/lnbits/extensions/nostrnip5/README.md @@ -25,9 +25,20 @@ Then, you'll need to set up a proxy that points `https://{your_domain}/.well-kno Example nginx configuration ``` +## Proxy Server Caching +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; } ``` \ No newline at end of file