diff options
| author | Adam Soltys <[email protected]> | 2022-09-14 12:17:03 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2022-09-14 12:17:03 -0700 |
| commit | 59d7dcd4f97a63c2d572f41c908b342114701dc4 (patch) | |
| tree | 4cb95d14ec9edb3f1cba7e3a59f3f42ece3022cd | |
| parent | cf5335d9a16dce15c1aac5a01febaa90a093729c (diff) | |
| download | coinos-server-59d7dcd4f97a63c2d572f41c908b342114701dc4.tar.gz coinos-server-59d7dcd4f97a63c2d572f41c908b342114701dc4.zip | |
sampleconfig lnurl
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | docker-compose.yml | 4 | ||||
| -rw-r--r-- | sampleconfig/lnurl.js | 46 |
3 files changed, 49 insertions, 3 deletions
@@ -19,7 +19,7 @@ cp fx.sample fx docker network create net --gateway 172.18.0.1 --subnet 172.18.0.0/16 docker run -it -v $(pwd):/app --entrypoint pnpm asoltys/coinos-server i docker-compose up -d -docker exec -i mariadb mysql -u root -ppassword < db/schema.sql +docker exec -i maria mysql -u root -ppassword < db/schema.sql docker exec -it bitcoin bitcoin-cli createwallet coinos docker exec -it bitcoin bitcoin-cli rescanblockchain docker exec -it bitcoin bitcoin-cli generatetoaddress 500 $(docker exec -it bitcoin bitcoin-cli getnewaddress "" "p2sh-segwit") diff --git a/docker-compose.yml b/docker-compose.yml index 391768e9..6b430e35 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,6 @@ services: - app container_name: ui image: asoltys/coinos-ui:dev - command: ["pnpm", "dev"] ports: - '8085:8085' environment: @@ -23,6 +22,7 @@ services: - lnd container_name: app image: gcr.io/coinos-326717/github.com/coinos/coinos-server:prod + command: ["pnpm", "dev"] ports: - '3118:3118' - '3119:3119' @@ -85,7 +85,7 @@ services: default: ipv4_address: 172.18.0.31 maria: - container_name: mariadb + container_name: maria image: mariadb:10.6.1 restart: always environment: diff --git a/sampleconfig/lnurl.js b/sampleconfig/lnurl.js new file mode 100644 index 00000000..6f358983 --- /dev/null +++ b/sampleconfig/lnurl.js @@ -0,0 +1,46 @@ +import fs from "fs"; + +export default { + host: "app", + port: 3118, + protocol: "http", + url: "https://desk.bobcat-liberty.ts.net", + endpoint: "/lnurl", + listen: true, + auth: { + apiKeys: [ + { + id: "50bdeb634d", + key: "ac9bdd15a983072311c74c13877d122f16a27a8f40cb4dfa5014eece4da5cda2" + } + ] + }, + lightning: { + backend: "lnd", + config: { + hostname: "lnd:9735", + cert: { + data: fs.readFileSync( + "/app/config/lnd/tls.cert", + "utf8" + ) + }, + macaroon: { + data: + "0201036c6e6402f801030a100a1edc729d77423ec23fa75b85b781391201301a160a0761646472657373120472656164120577726974651a130a04696e666f120472656164120577726974651a170a08696e766f69636573120472656164120577726974651a210a086d616361726f6f6e120867656e6572617465120472656164120577726974651a160a076d657373616765120472656164120577726974651a170a086f6666636861696e120472656164120577726974651a160a076f6e636861696e120472656164120577726974651a140a057065657273120472656164120577726974651a180a067369676e6572120867656e657261746512047265616400000620aea455def2702fb1ec9838f1300255147ed20e825a539a1ee2e99e7049b04c11" + } + } + }, + store: { + backend: 'knex', + config: { + client: 'mysql', + connection: { + host: 'maria', + user: 'root', + password: 'password', + database: 'coinos', + }, + }, + }, +}; |
