Fix LNbits lnurl support over tor (#2485)

This commit is contained in:
Fitti 2021-08-19 16:41:50 +02:00 committed by GitHub
parent 572b71e0da
commit ac72abd3fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 2 deletions

View File

@ -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;
}
}

View 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;

View File

@ -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"