From b933716cc1fc4a2a785796fb91ed2e3a43c2557c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 25 Jan 2023 11:09:13 -0800 Subject: sample config --- .gitignore | 1 - lib/register.js | 2 +- sampleconfig.js | 21 +++++++++++++++++++++ setup.sh | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 sampleconfig.js diff --git a/.gitignore b/.gitignore index 29bf5351..7bbd2455 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,4 @@ node_modules/ .pnpm* -uploads data config.js diff --git a/lib/register.js b/lib/register.js index 63dccb38..90df18e2 100644 --- a/lib/register.js +++ b/lib/register.js @@ -25,7 +25,7 @@ export default async (user, ip, requireChallenge) => { } if (!config.ipxapi || ip.startsWith("127") || ip.startsWith("192")) { - user.currency = "CAD"; + user.currency = "USD"; } else { let countryCode = "US"; try { diff --git a/sampleconfig.js b/sampleconfig.js new file mode 100644 index 00000000..b82623bc --- /dev/null +++ b/sampleconfig.js @@ -0,0 +1,21 @@ +export default { + nostr: "ws://nostr:8080", + relays: [ + "ws://nostr:8080", + "wss://nostr-pub.wellorder.net", + "wss://brb.io", + "wss://nostr.v0l.io", + "wss://relay.nostr.bg", + "wss://nostr.orangepill.dev" + ], + jwt: "00d0ab4f7738a83feb37f661526512063c41e49278b7c32cba87314269a5788b", + bitcoin: { + host: "bc", + wallet: "coinos", + username: "admin1", + password: "123", + network: "regtest", + port: 18443, + }, + lightning: "/app/data/lightning/regtest/lightning-rpc" +}; diff --git a/setup.sh b/setup.sh index 1f527f88..c3e58161 100644 --- a/setup.sh +++ b/setup.sh @@ -1,3 +1,4 @@ +cp sampleconfig.js config.js cp -r sampledata data docker compose up -d docker run -it -v $(pwd):/app --entrypoint pnpm cs i -- cgit v1.2.3