Browse Source

Add satsale app (#1102)

Co-authored-by: Luke Childs <lukechilds123@gmail.com>
0.4.11
Nick 3 years ago
committed by GitHub
parent
commit
af61e2df13
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      apps/registry.json
  2. 0
      apps/satsale/data/.gitkeep
  3. 24
      apps/satsale/docker-compose.yml
  4. 4
      scripts/configure
  5. 2
      templates/.env-sample
  6. 4
      templates/torrc-server-sample

23
apps/registry.json

@ -729,5 +729,28 @@
"path": "",
"defaultUsername": "umbrel",
"deterministicPassword": true
},
{
"id": "satsale",
"category": "Finance",
"name": "SatSale",
"version": "0.1.11",
"tagline": "Lightweight Bitcoin payment processor",
"description": "SatSale is a simple, easily deployable, lightweight Bitcoin payment processor that connects to your own Bitcoin node. You can use SatSale to instantly turn your Umbrel into a point-of-sale (settings under /admin). SatSale can process donations from your supporters, facilitating direct peer-to-peer payments without any middleman and greater privacy than reusing donation addresses.\n\nHost your own Bitcoin payment gateway for Woocommerce without a middleman or custodian, allowing you to turn any wordpress site into a bitcoin-accepting store.\n\nThis Umbrel app contains a subset of the features we have in the works for SatSale, but will push updates out as they are ready. Check out the website and GitHub for more!\n\nPlease note that SatSale is still in early development. As such, we are not responsible for any loss of funds, vulnerabilities, or any other grievances which arise. Always confirm large payments manually and use cold storage as much as possible. Please contribute if you can!",
"developer": "Nick Farrow",
"website": "https://satsale.org",
"dependencies": [
"lnd"
],
"repo": "https://github.com/nickfarrow/SatSale/",
"support": "https://github.com/nickfarrow/SatSale/issues",
"port": 5000,
"gallery": [
"1.jpg",
"2.jpg",
"3.jpg"
],
"path": "/admin",
"deterministicPassword": true
}
]

0
apps/satsale/data/.gitkeep

24
apps/satsale/docker-compose.yml

@ -0,0 +1,24 @@
version: "3.7"
services:
satsale:
image: satsale/satsale:0.1.11@sha256:d9b0cd4beb711f2e95562cdc76b05d71a10edb09c97920a3e21c861398320447
restart: on-failure
stop_grace_period: 1m
volumes:
- ${APP_DATA_DIR}/data:/data
- ${LND_DATA_DIR}:/lnd:ro
ports:
- ${APP_SATSALE_PORT}:5000
environment:
DATA_DIR: "/data"
# Lightning node connection details
LND_DATA_DIR: $LND_DATA_DIR
LND_HOST: $LND_IP
LND_GRPC_PORT: $LND_GRPC_PORT
MACAROON_FILE: /lnd/data/chain/bitcoin/${BITCOIN_NETWORK}/invoice.macaroon
TLS_FILE: /lnd/tls.cert
APP_PASSWORD: $APP_PASSWORD
networks:
default:
ipv4_address: $APP_SATSALE_IP

4
scripts/configure

@ -217,6 +217,8 @@ APP_ITCHYSATS_IP="10.21.21.64"
APP_ITCHYSATS_PORT="7113"
APP_LIGHTNING_SHELL_PORT="7681"
APP_LIGHTNING_SHELL_IP="10.21.21.66"
APP_SATSALE_PORT="5000"
APP_SATSALE_IP="10.21.21.67"
# Generate RPC credentials
if [[ -z ${BITCOIN_RPC_USER+x} ]] || [[ -z ${BITCOIN_RPC_PASS+x} ]] || [[ -z ${BITCOIN_RPC_AUTH+x} ]]; then
@ -436,6 +438,8 @@ for template in "${NGINX_CONF_FILE}" "${BITCOIN_CONF_FILE}" "${LND_CONF_FILE}" "
sed -i "s/<app-itchysats-port>/${APP_ITCHYSATS_PORT}/g" "${template}"
sed -i "s/<app-lightning-shell-port>/${APP_LIGHTNING_SHELL_PORT}/g" "${template}"
sed -i "s/<app-lightning-shell-ip>/${APP_LIGHTNING_SHELL_IP}/g" "${template}"
sed -i "s/<app-satsale-port>/${APP_SATSALE_PORT}/g" "${template}"
sed -i "s/<app-satsale-ip>/${APP_SATSALE_IP}/g" "${template}"
done
##########################################################

2
templates/.env-sample

@ -117,3 +117,5 @@ APP_ITCHYSATS_IP=<app-itchysats-ip>
APP_ITCHYSATS_PORT=<app-itchysats-port>
APP_LIGHTNING_SHELL_PORT=<app-lightning-shell-port>
APP_LIGHTNING_SHELL_IP=<app-lightning-shell-ip>
APP_SATSALE_PORT=<app-satsale-port>
APP_SATSALE_IP=<app-satsale-ip>

4
templates/torrc-server-sample

@ -172,3 +172,7 @@ HiddenServicePort 80 <app-itchysats-ip>:8000
# lightning-shell Hidden Service
HiddenServiceDir /data/app-lightning-shell
HiddenServicePort 80 <app-lightning-shell-ip>:7681
# satsale Hidden Service
HiddenServiceDir /data/app-satsale
HiddenServicePort 80 <app-satsale-ip>:5000

Loading…
Cancel
Save