mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 10:12:06 +01:00
Fix LNbits lnurl support over tor (#2485)
This commit is contained in:
parent
572b71e0da
commit
ac72abd3fa
@ -15,7 +15,7 @@ server {
|
||||
location / {
|
||||
proxy_pass http://127.0.0.1:5000;
|
||||
|
||||
include /etc/nginx/snippets/ssl-proxy-params.conf;
|
||||
include /etc/nginx/snippets/proxy-params.conf;
|
||||
}
|
||||
|
||||
}
|
||||
|
11
home.admin/assets/nginx/snippets/proxy-params.conf
Normal file
11
home.admin/assets/nginx/snippets/proxy-params.conf
Normal file
@ -0,0 +1,11 @@
|
||||
# proxy-params.conf
|
||||
|
||||
proxy_redirect off;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto http;
|
||||
|
||||
# remove if not needed
|
||||
# proxy_set_header X-Forwarded-Host $server_name;
|
||||
|
@ -270,7 +270,7 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||
sudo rm /home/lnbits/lnbits/.env 2>/dev/null
|
||||
sudo -u lnbits touch /home/lnbits/lnbits/.env
|
||||
sudo bash -c "echo 'QUART_APP=lnbits.app:create_app()' >> /home/lnbits/lnbits/.env"
|
||||
sudo bash -c "echo 'LNBITS_FORCE_HTTPS=1' >> /home/lnbits/lnbits/.env"
|
||||
sudo bash -c "echo 'LNBITS_FORCE_HTTPS=0' >> /home/lnbits/lnbits/.env"
|
||||
sudo bash -c "echo 'LNBITS_BACKEND_WALLET_CLASS=LndRestWallet' >> /home/lnbits/lnbits/.env"
|
||||
sudo bash -c "echo 'LND_REST_ENDPOINT=https://127.0.0.1:8080' >> /home/lnbits/lnbits/.env"
|
||||
sudo bash -c "echo 'LND_REST_CERT=' >> /home/lnbits/lnbits/.env"
|
||||
|
Loading…
Reference in New Issue
Block a user