Repository navigation
Restructure opt-add-lightning-terminal and at CLI scripts #1187
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
Merged
NicolasDorier
merged 12 commits into
btcpayserver:master
from
Liongrass:lightning-terminal
Oct 16, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
dcd4117
Harden opt-add-lightning-terminal.yml
Liongrass 7e70d2e
remove lightning-terminal nginx route
Liongrass 43e4052
add frcli litcli loop pool and tapcli scripts
Liongrass aa83dfa
Merge branch 'btcpayserver:master' into lightning-terminal
Liongrass ed94cbf
remove litd password test
Liongrass a735f1b
remove special litd password case
Liongrass cc4db7f
update documentation
Liongrass 830f888
rename CLI scripts
Liongrass 3b24d92
register scripts through helpers.sh and simplify documentation
Liongrass b8432bd
improve documentation based on agentic feedback
Liongrass 28b29bd
pool loop typo
Liongrass 0afab42
remove bitcoin- prefix from examples
Liongrass File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
35 changes: 15 additions & 20 deletions
35
docker-compose-generator/docker-fragments/opt-add-lightning-terminal.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,45 +1,40 @@ | ||
| required-routes: | ||
| - "lightning-terminal" | ||
| services: | ||
| btcpayserver: | ||
| environment: | ||
| BTCPAY_EXTERNALSERVICES: "Lightning Terminal:${BTCPAY_PROTOCOL:-https}://${BTCPAY_HOST}/lit/;" | ||
| volumes: | ||
| - "lnd_lit_datadir:/lit:ro" | ||
| lnd_bitcoin: | ||
| environment: | ||
| LND_EXTRA_ARGS: | | ||
| rpcmiddleware.enable=true | ||
| lnd_lit: | ||
| image: "lightninglabs/lightning-terminal:v0.17.6-path-prefix" | ||
| image: "lightninglabs/lightning-terminal:v0.17.6" | ||
| container_name: btcpayserver_litd | ||
| restart: unless-stopped | ||
| environment: | ||
| LIT_AUTO_MIGRATE_TO_SQL: "true" | ||
| expose: | ||
| - "8080" | ||
| secrets: | ||
| - lit_password | ||
| - "8443" | ||
| volumes: | ||
| - "lnd_lit_datadir:/root/.lit" | ||
| - "lnd_lit_datadir:/lit" | ||
| - "lnd_bitcoin_datadir:/data/lnd:ro" | ||
| - "bitcoin_datadir:/deps/.bitcoin:ro" | ||
| links: | ||
| - bitcoind | ||
| - lnd_bitcoin | ||
| command: | ||
| - "--insecure-httplisten=0.0.0.0:8080" | ||
| - "--disableui" | ||
| - "--lit-dir=/lit/.lit" | ||
| - "--loop.loopdir=/lit/.loop" | ||
| - "--pool.basedir=/lit/.pool" | ||
| - "--faraday.faradaydir=/lit/.faraday" | ||
| - "--taproot-assets.tapddir=/lit/.tapd" | ||
| - "--httpslisten=0.0.0.0:8443" | ||
| - "--network=${NBITCOIN_NETWORK}" | ||
| - "--uipassword_file=/run/secrets/lit_password" | ||
| - "--lnd-mode=remote" | ||
| - "--remote.lnd.rpcserver=lnd_bitcoin:10009" | ||
| - "--remote.lnd.macaroonpath=/data/lnd/admin.macaroon" | ||
| - "--remote.lnd.tlscertpath=/data/lnd/tls.cert" | ||
| - "--faraday.connect_bitcoin" | ||
| - "--faraday.bitcoin.host=bitcoind:43782" | ||
| - "--faraday.bitcoin.user=lnd" | ||
| - "--faraday.bitcoin.passwordfile=/deps/.bitcoin/RPCUsers/lnd" | ||
|
|
||
| volumes: | ||
| lnd_lit_datadir: | ||
| secrets: | ||
| lit_password: | ||
| file: ../secrets/lit_password | ||
|
|
||
| required: | ||
| - "bitcoin-lnd" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| . /etc/profile.d/btcpay-env.sh | ||
|
|
||
| docker exec btcpayserver_litd frcli \ | ||
| --rpcserver=localhost:8443 \ | ||
| --tlscertpath=/lit/.lit/tls.cert \ | ||
| --macaroonpath="/lit/.faraday/$NBITCOIN_NETWORK/faraday.macaroon" \ | ||
| --network="$NBITCOIN_NETWORK" \ | ||
| "$@" | ||
|
|
||
| # Example usage: . ./bitcoin-frcli.sh insights |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #!/bin/bash | ||
|
|
||
| . /etc/profile.d/btcpay-env.sh | ||
|
|
||
| docker exec btcpayserver_litd litcli \ | ||
| --basedir="/lit/.lit/" \ | ||
| --network="$NBITCOIN_NETWORK" \ | ||
| "$@" | ||
|
|
||
| # Example usage: . ./bitcoin-litcli.sh status |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| . /etc/profile.d/btcpay-env.sh | ||
|
|
||
| docker exec btcpayserver_litd loop \ | ||
| --rpcserver=localhost:8443 \ | ||
| --tlscertpath=/lit/.lit/tls.cert \ | ||
| --macaroonpath="/lit/.loop/$NBITCOIN_NETWORK/loop.macaroon" \ | ||
| --network="$NBITCOIN_NETWORK" \ | ||
| "$@" | ||
|
|
||
| # Example usage: . ./bitcoin-loop.sh getinfo |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| . /etc/profile.d/btcpay-env.sh | ||
|
|
||
| docker exec btcpayserver_litd pool \ | ||
| --rpcserver=localhost:8443 \ | ||
| --tlscertpath=/lit/.lit/tls.cert \ | ||
| --macaroonpath="/lit/.pool/$NBITCOIN_NETWORK/pool.macaroon" \ | ||
| --network="$NBITCOIN_NETWORK" \ | ||
| "$@" | ||
|
|
||
| # Example usage: . ./bitcoin-pool.sh getinfo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
|
|
||
| . /etc/profile.d/btcpay-env.sh | ||
|
|
||
| docker exec btcpayserver_litd tapcli \ | ||
| --rpcserver=localhost:8443 \ | ||
| --tlscertpath=/lit/.lit/tls.cert \ | ||
| --macaroonpath="/lit/.tapd/data/$NBITCOIN_NETWORK/admin.macaroon" \ | ||
| --network="$NBITCOIN_NETWORK" \ | ||
| "$@" | ||
|
|
||
| # Example usage: . ./bitcoin-tapcli.sh getinfo |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: btcpayserver/btcpayserver-docker
Length of output: 8162
🌐 Web query:
official litd documentation --disableui Lightning Terminal web UI💡 Result:
🌐 Web query:
site:github.com/lightninglabs/lightning-terminal disableui litd💡 Result:
🌐 Web query:
github.com/lightninglabs/lightning-terminal v0.17.6 --disableui💡 Result:
Update the Lightning Terminal guide for the disabled UI.
--disableuidisables the Lightning Terminal web UI inv0.17.6. The guide still directs users to/lit/, so that workflow is unavailable.Suggested fix
🤖 Prompt for AI Agents