From 23b0c8c04c74280c2b4873b970eca7551270ca00 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Sat, 13 Jul 2024 16:07:12 +0200 Subject: [PATCH 1/2] Use default relay somehow I had user reports that the relay was somehow blank. And I think the default is just good if there are more relay options in the future we can enabled it again. --- docker_entrypoint.sh | 5 ----- scripts/procedures/getConfig.ts | 8 -------- 2 files changed, 13 deletions(-) diff --git a/docker_entrypoint.sh b/docker_entrypoint.sh index c88e7e6..c8f021e 100644 --- a/docker_entrypoint.sh +++ b/docker_entrypoint.sh @@ -3,9 +3,6 @@ # https://nwc.getalby.com/public/images/nwc-logo.svg # - -export RELAY="wss://relay.getalby.com/v1" - export LN_BACKEND_TYPE="LND" export LND_ADDRESS="lnd.embassy:10009" #the LND gRPC address, eg. localhost:10009 (used with the LND backend) export LND_CERT_FILE="/mnt/lnd/tls.cert" #the location where LND's tls.cert file can be found (used with the LND backend) @@ -15,9 +12,7 @@ export PORT=8080 #the port on which the app should listen on (default='blah' #80 export TOR_ADDRESS=$(yq e '.tor-address' /data/start9/config.yaml) export LAN_ADDRESS=$(yq e '.lan-address' /data/start9/config.yaml) -export RELAY=$(yq e ".nostr-relay" /data/start9/config.yaml) -echo "Nostr Relay: " $RELAY echo "LN Backend Type: " $LN_BACKEND_TYPE echo "LN Address: " $LND_ADDRESS echo "LND Cert: " $LND_CERT_FILE diff --git a/scripts/procedures/getConfig.ts b/scripts/procedures/getConfig.ts index 6db0c6b..0012b65 100644 --- a/scripts/procedures/getConfig.ts +++ b/scripts/procedures/getConfig.ts @@ -24,13 +24,5 @@ export const getConfig: T.ExpectedExports.getConfig = compat.getConfig({ "package-id": "albyhub", "target": "lan-address", "interface": "main", - }, - "nostr-relay": { - "type": "string", - "name": "Nostr Relay", - "default": "wss://relay.getalby.com/v1", - "description": "The Nostr Relay to use for Albyhub connections", - "copyable": true, - "nullable": false, } }); From 86ea21cde10c5b4d210f069c09f5f3d8ab48562a Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Mon, 15 Jul 2024 00:33:53 +0200 Subject: [PATCH 2/2] Enable logs for debugging and notifications --- docker_entrypoint.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/docker_entrypoint.sh b/docker_entrypoint.sh index c8f021e..2c12e0a 100644 --- a/docker_entrypoint.sh +++ b/docker_entrypoint.sh @@ -9,6 +9,7 @@ export LND_CERT_FILE="/mnt/lnd/tls.cert" #the location where LND's tls.cert f export LND_MACAROON_FILE="/mnt/lnd/admin.macaroon" #the location where LND's admin.macaroon file can be found (used with the LND backend) export WORK_DIR="/data/albyhub" export PORT=8080 #the port on which the app should listen on (default='blah' #8080) +export LOG_EVENTS=true # makes debugging easier export TOR_ADDRESS=$(yq e '.tor-address' /data/start9/config.yaml) export LAN_ADDRESS=$(yq e '.lan-address' /data/start9/config.yaml)