Skip to content

Commit

Permalink
Merge pull request #830 from ivpn/task/add-lnurlp-url
Browse files Browse the repository at this point in the history
Task/add lnurlp url
  • Loading branch information
nathanrod authored Oct 1, 2024
2 parents 66f79a2 + 6629a31 commit 84bbb77
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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 ~ ^/ {
Expand Down Expand Up @@ -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;
}

1 change: 1 addition & 0 deletions src/static/.well-known/lnurlp
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"status":"OK","tag":"payRequest","commentAllowed":255,"callback":"https://getalby.com/lnurlp/ivpn/callback","metadata":"[[\"text/identifier\",\"[email protected]\"],[\"text/plain\",\"Sats for ivpn\"]]","minSendable":1000,"maxSendable":10000000000,"payerData":{"name":{"mandatory":false},"email":{"mandatory":false},"pubkey":{"mandatory":false}},"nostrPubkey":"79f00d3f5a19ec806189fcab03c1be4ff81d18ee4f653c88fac41fe03570f432","allowsNostr":true}

0 comments on commit 84bbb77

Please sign in to comment.