aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--lib/register.js2
-rw-r--r--sampleconfig.js21
-rw-r--r--setup.sh1
4 files changed, 23 insertions, 2 deletions
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