diff --git a/nginx.conf b/nginx.conf index 4c5902d1..418ff306 100644 --- a/nginx.conf +++ b/nginx.conf @@ -52,6 +52,11 @@ server { add_header Content-Type application/json; } + location ~ ^/.well-known/lnurlp { + add_header Access-Control-Allow-Origin *; + add_header Content-Type application/json; + } + # This will try to load index.html file if # requested without a trailing slash location ~ ^/ { @@ -375,5 +380,6 @@ server { rewrite ^/knowledgebase/troubleshooting/how-to-test-port-forwarding$ /knowledgebase/general/do-you-support-port-forwarding/ permanent; rewrite ^/knowledgebase/troubleshooting/port-forwarding-is-not-working-why$ /knowledgebase/general/do-you-support-port-forwarding/ permanent; rewrite ^/knowledgebase/mp/access-your-plex-server-running-behind-a-vpn$ /knowledgebase/general/how-do-i-remotely-connect-to-my-home-system-or-services-behind-the-vpn-connection permanent; + rewrite ^/.well-known/lnurlp/ /.well-known/lnurlp permanent; } diff --git a/src/static/.well-known/lnurlp b/src/static/.well-known/lnurlp new file mode 100644 index 00000000..09626ea5 --- /dev/null +++ b/src/static/.well-known/lnurlp @@ -0,0 +1 @@ +{"status":"OK","tag":"payRequest","commentAllowed":255,"callback":"https://getalby.com/lnurlp/ivpn/callback","metadata":"[[\"text/identifier\",\"ivpn@getalby.com\"],[\"text/plain\",\"Sats for ivpn\"]]","minSendable":1000,"maxSendable":10000000000,"payerData":{"name":{"mandatory":false},"email":{"mandatory":false},"pubkey":{"mandatory":false}},"nostrPubkey":"79f00d3f5a19ec806189fcab03c1be4ff81d18ee4f653c88fac41fe03570f432","allowsNostr":true} \ No newline at end of file