Hey Leute!
Seit dem letzten lnbits Update habe ich ein Problem. Meine lnbits instanz lässt sich via https://lnbits.meineDomain.de aufrufen. Allerdings kann ich die API Verbindung und einige Extentions nicht nutzen. Die lnurlw Extention liefert: 426 UPGRADE REQUIRED
Die API Examples liefern eine http und keine https Beispiele:
Curl example
curl http://lnbits.meineDomain.de/api/v1/wallet -H "X-Api-Key: 123"
Meine Apache 2 config:
<VirtualHost *:443>
ServerName lnbits.meineDomain.de
SSLEngine On
SSLProxyEngine On
SSLCertificateFile /etc/letsencrypt/live/lnbits.meineDomain.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/lnbits.meineDomain.de/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
LogLevel info
ErrorLog /var/log/apache2/lnbits.log
CustomLog /var/log/apache2/lnbits-access.log combined
RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
RequestHeader set "X-Forwarded-SSL" expr=%{HTTPS}
ProxyPreserveHost On
ProxyPass http://10.8.0.2:3007/
ProxyPassReverse http://10.8.0.2:3007/
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
Habe ich von hier übernommen:
meine Umbrel-Docker Compose sieht so aus:
unter ipv4_address ist die ip des vps hinterlegt. Host der Domain Name
version: "3.7"
services:
app_proxy:
environment:
APP_HOST: lnbits_web_1
APP_PORT: 3007
PROXY_AUTH_ADD: "false"
PROXY_TRUST_UPSTREAM: "true"
web:
image: lnbits/lnbits:0.12.1@sha256:5e0cd330f8ce4c8d1145e90b073f321e6068d2b79b70a3029f72030ab626125a
init: true
restart: on-failure
stop_grace_period: 1m
volumes:
- ${APP_DATA_DIR}/data:/data
- ${APP_LIGHTNING_NODE_DATA_DIR}:/lnd:ro
environment:
# Global
LNBITS_HOST: "meineDomain.de"
LNBITS_PORT: 3007
LNBITS_DATA_FOLDER: "/data"
# LND
LNBITS_BACKEND_WALLET_CLASS: LndRestWallet
LND_REST_ENDPOINT: https://$APP_LIGHTNING_NODE_IP:$APP_LIGHTNING_NODE_REST_PORT/
LND_REST_CERT: "/lnd/tls.cert"
LND_REST_MACAROON: "/lnd/data/chain/bitcoin/$APP_BITCOIN_NETWORK/admin.macaroon"
# App
LNBITS_SITE_TITLE: "LNbits - Umbrel"
LNBITS_DEFAULT_WALLET_NAME: "LNbits wallet"
LNBITS_DISABLED_EXTENSIONS: "amilk"
LNBITS_ADMIN_EXTENSIONS: "ngrok"
LNBITS_ADMIN_UI: "true"
SUPER_USER: "$APP_PASSWORD"
LNBITS_ADMIN_EXTENSIONS: "ngrok"
command: uvicorn lnbits.__main__:app --port 3007 --host "meineDomain.de" --forwarded-allow-ips="*"
networks:
default:
ipv4_address: 12.345.678.99
Ich bin mir nicht sicher, wo ich ansetzen muss. Liegt es an der Apache2 Config? Liegt es an der Docker-compose.yml.?
Kann jemand weiterhelfen?