diff --git a/home.admin/assets/nginx/sites-available/lnbits_tor.conf b/home.admin/assets/nginx/sites-available/lnbits_tor.conf index 84578c24..83a18793 100644 --- a/home.admin/assets/nginx/sites-available/lnbits_tor.conf +++ b/home.admin/assets/nginx/sites-available/lnbits_tor.conf @@ -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; } } diff --git a/home.admin/assets/nginx/snippets/proxy-params.conf b/home.admin/assets/nginx/snippets/proxy-params.conf new file mode 100644 index 00000000..348a5819 --- /dev/null +++ b/home.admin/assets/nginx/snippets/proxy-params.conf @@ -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; + diff --git a/home.admin/config.scripts/bonus.lnbits.sh b/home.admin/config.scripts/bonus.lnbits.sh index c5fc76a4..0300e2a1 100755 --- a/home.admin/config.scripts/bonus.lnbits.sh +++ b/home.admin/config.scripts/bonus.lnbits.sh @@ -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"