From b84161c49d836501b7a8f0d8e4c102f8bebb0ed6 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Thu, 16 May 2024 11:05:22 +0300 Subject: [PATCH] [chore] Update `legend` to `demo` (#2505) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: update `legend.lnbits.com` to `demo.lnbits.com` * Update docs/guide/admin_ui.md * fix: docker image name * fix: donation links --------- Co-authored-by: dni ⚡ --- .env.example | 4 ++-- README.md | 4 ++-- docs/devs/api.md | 2 +- docs/devs/swagger.html | 2 +- docs/devs/websockets.md | 2 +- docs/guide/admin_ui.md | 2 +- docs/guide/faq.md | 2 +- docs/guide/installation.md | 6 +++--- lnbits/core/templates/core/index.html | 2 +- lnbits/settings.py | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.env.example b/.env.example index 32f0b47b9..b481a3c6c 100644 --- a/.env.example +++ b/.env.example @@ -58,7 +58,7 @@ CORELIGHTNING_REST_MACAROON="/path/to/clnrest/access.macaroon" # or BASE64/HEXS CORELIGHTNING_REST_CERT="/path/to/clnrest/tls.cert" # LnbitsWallet -LNBITS_ENDPOINT=https://legend.lnbits.com +LNBITS_ENDPOINT=https://demo.lnbits.com LNBITS_KEY=LNBITS_ADMIN_KEY # LndWallet @@ -183,7 +183,7 @@ LNBITS_DEFAULT_WALLET_NAME="LNbits wallet" # csv ad space, format ";;, ;;", extensions can choose to honor # LNBITS_AD_SPACE="https://shop.lnbits.com/;https://raw.githubusercontent.com/lnbits/lnbits/main/lnbits/static/images/lnbits-shop-light.png;https://raw.githubusercontent.com/lnbits/lnbits/main/lnbits/static/images/lnbits-shop-dark.png" # LNBITS_SHOW_HOME_PAGE_ELEMENTS=true # if set to true, the ad space will be displayed on the home page -# LNBITS_CUSTOM_BADGE="USE WITH CAUTION - LNbits wallet is still in BETA" +# LNBITS_CUSTOM_BADGE="USE WITH CAUTION - LNbits wallet is still in BETA" # LNBITS_CUSTOM_BADGE_COLOR="warning" # Hides wallet api, extensions can choose to honor diff --git a/README.md b/README.md index 8d3497e92..b2d9c935a 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ LNbits is inspired by all the great work of [opennode.com](https://www.opennode. ## Running LNbits -Test on our demo server [legend.lnbits.com](https://legend.lnbits.com), or on [lnbits.com](https://lnbits.com) software as a service, where you can spin up an LNbits instance for 21sats per hr. +Test on our demo server [demo.lnbits.com](https://demo.lnbits.com), or on [lnbits.com](https://lnbits.com) software as a service, where you can spin up an LNbits instance for 21sats per hr. See the [install guide](https://github.com/lnbits/lnbits/blob/main/docs/guide/installation.md) for details on installation and setup. @@ -68,7 +68,7 @@ As well as working great in a browser, LNbits has native IoS and Android apps as ## Tip us -If you like this project [send some tip love](https://legend.lnbits.com/paywall/GAqKguK5S8f6w5VNjS9DfK)! +If you like this project [send some tip love](https://demo.lnbits.com/lnurlp/link/fH59GD)! [docs]: https://github.com/lnbits/lnbits/wiki [docs-badge]: https://img.shields.io/badge/docs-lnbits.org-673ab7.svg diff --git a/docs/devs/api.md b/docs/devs/api.md index 3a8839178..c030c4047 100644 --- a/docs/devs/api.md +++ b/docs/devs/api.md @@ -7,4 +7,4 @@ nav_order: 3 # API reference -[Swagger Docs](https://legend.lnbits.com/docs) +[Swagger Docs](https://demo.lnbits.com/docs) diff --git a/docs/devs/swagger.html b/docs/devs/swagger.html index 4054fe9ae..393e08be4 100644 --- a/docs/devs/swagger.html +++ b/docs/devs/swagger.html @@ -16,7 +16,7 @@ window.onload = function () { // Begin Swagger UI call region const ui = SwaggerUIBundle({ - url: 'https://legend.lnbits.com/openapi.json', //Location of Open API spec in the repo + url: 'https://demo.lnbits.com/openapi.json', //Location of Open API spec in the repo dom_id: '#swagger-ui', deepLinking: true, presets: [ diff --git a/docs/devs/websockets.md b/docs/devs/websockets.md index cdadfeaec..c098fb940 100644 --- a/docs/devs/websockets.md +++ b/docs/devs/websockets.md @@ -9,7 +9,7 @@ nav_order: 2 `websockets` are a great way to add a two way instant data channel between server and client. -LNbits has a useful in built websocket tool. With a websocket client connect to (obv change `somespecificid`) `wss://legend.lnbits.com/api/v1/ws/somespecificid` (you can use an online websocket tester). Now make a get to `https://legend.lnbits.com/api/v1/ws/somespecificid/somedata`. You can send data to that websocket by using `from lnbits.core.services import websocketUpdater` and the function `websocketUpdater("somespecificid", "somdata")`. +LNbits has a useful in built websocket tool. With a websocket client connect to (obv change `somespecificid`) `wss://demo.lnbits.com/api/v1/ws/somespecificid` (you can use an online websocket tester). Now make a get to `https://demo.lnbits.com/api/v1/ws/somespecificid/somedata`. You can send data to that websocket by using `from lnbits.core.services import websocketUpdater` and the function `websocketUpdater("somespecificid", "somdata")`. Example vue-js function for listening to the websocket: diff --git a/docs/guide/admin_ui.md b/docs/guide/admin_ui.md index 253d37378..5b4da3f7c 100644 --- a/docs/guide/admin_ui.md +++ b/docs/guide/admin_ui.md @@ -44,7 +44,7 @@ Account creation can be also disabled by setting `LNBITS_ALLOW_NEW_ACCOUNTS=fals ``` $ sudo systemctl stop lnbits.service -$ cd ~/lnbits-legend +$ cd ~/lnbits $ sudo nano .env ``` diff --git a/docs/guide/faq.md b/docs/guide/faq.md index 8f98221f8..93f5ad248 100644 --- a/docs/guide/faq.md +++ b/docs/guide/faq.md @@ -84,7 +84,7 @@ allow-self-payment=1
Wallet-URL deleted, are my funds safu ?
  • -
    Wallet on demo server legend.lnbits +
    Wallet on demo server demo.lnbits.com

    Always save a copy of your wallet-URL, Export2phone-QR or LNDhub for your own wallets in a safe place. LNbits CANNOT help you to recover them when lost.

  • diff --git a/docs/guide/installation.md b/docs/guide/installation.md index 63ceef907..469165b93 100644 --- a/docs/guide/installation.md +++ b/docs/guide/installation.md @@ -163,7 +163,7 @@ You'll be prompted to enter an app name, region, postgres (choose no), deploy no You'll now find a file in the directory called `fly.toml`. Open that file and modify/add the following settings. -Note: Be sure to replace `${PUT_YOUR_LNBITS_ENV_VARS_HERE}` with all relevant environment variables in `.env` or `.env.example`. Environment variable strings should be quoted here, so if in `.env` you have `LNBITS_ENDPOINT=https://legend.lnbits.com` in `fly.toml` you should have `LNBITS_ENDPOINT="https://legend.lnbits.com"`. +Note: Be sure to replace `${PUT_YOUR_LNBITS_ENV_VARS_HERE}` with all relevant environment variables in `.env` or `.env.example`. Environment variable strings should be quoted here, so if in `.env` you have `LNBITS_ENDPOINT=https://demo.lnbits.com` in `fly.toml` you should have `LNBITS_ENDPOINT="https://demo.lnbits.com"`. Note: Don't enter secret environment variables here. Fly.io offers secrets (via the `fly secrets` command) that are exposed as environment variables in your runtime. So, for example, if using the LND_REST funding source, you can run `fly secrets set LND_REST_MACAROON=`. @@ -513,7 +513,7 @@ To install using docker you first need to build the docker image as: ``` git clone https://github.com/lnbits/lnbits.git cd lnbits -docker build -t lnbits-legend . +docker build -t lnbits/lnbits . ``` You can launch the docker in a different directory, but make sure to copy `.env.example` from lnbits there @@ -533,7 +533,7 @@ mkdir data Then the image can be run as: ``` -docker run --detach --publish 5000:5000 --name lnbits-legend -e "LNBITS_BACKEND_WALLET_CLASS='FakeWallet'" --volume ${PWD}/.env:/app/.env --volume ${PWD}/data/:/app/data lnbits-legend +docker run --detach --publish 5000:5000 --name lnbits -e "LNBITS_BACKEND_WALLET_CLASS='FakeWallet'" --volume ${PWD}/.env:/app/.env --volume ${PWD}/data/:/app/data lnbits ``` Finally you can access your lnbits on your machine at port 5000. diff --git a/lnbits/core/templates/core/index.html b/lnbits/core/templates/core/index.html index 2ac8cb63d..1c919e5fc 100644 --- a/lnbits/core/templates/core/index.html +++ b/lnbits/core/templates/core/index.html @@ -338,7 +338,7 @@ outline color="grey" type="a" - href="https://legend.lnbits.com/paywall/GAqKguK5S8f6w5VNjS9DfK" + href="https://demo.lnbits.com/lnurlp/link/fH59GD" target="_blank" rel="noopener noreferrer" :label="$t('donate')" diff --git a/lnbits/settings.py b/lnbits/settings.py index dd94c911d..a0a952db2 100644 --- a/lnbits/settings.py +++ b/lnbits/settings.py @@ -157,7 +157,7 @@ class FakeWalletFundingSource(LNbitsSettings): class LNbitsFundingSource(LNbitsSettings): - lnbits_endpoint: str = Field(default="https://legend.lnbits.com") + lnbits_endpoint: str = Field(default="https://demo.lnbits.com") lnbits_key: Optional[str] = Field(default=None) lnbits_admin_key: Optional[str] = Field(default=None) lnbits_invoice_key: Optional[str] = Field(default=None)