Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default relay #2

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,17 @@
# 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)
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)
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
Expand Down
8 changes: 0 additions & 8 deletions scripts/procedures/getConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
});