aboutsummaryrefslogtreecommitdiffstats
path: root/config/samples
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-06-23 14:39:41 -0700
committerAdam Soltys <[email protected]>2020-06-23 14:39:41 -0700
commitd6af21064d106e6179d76e0dddee049c5e7c0fc5 (patch)
treed6cf57a7659a6e60ad80992c8f93dcc59c11c770 /config/samples
parent3c46dc86b753cdfd71da7b8bb86710032668b5eb (diff)
downloadcoinos-server-d6af21064d106e6179d76e0dddee049c5e7c0fc5.tar.gz
coinos-server-d6af21064d106e6179d76e0dddee049c5e7c0fc5.zip
lnurl auth
Diffstat (limited to 'config/samples')
-rw-r--r--config/samples/bitcoin.sample.conf14
-rw-r--r--config/samples/config.sample.json26
-rw-r--r--config/samples/index.sample.js49
-rw-r--r--config/samples/lnd.samplea.conf22
-rw-r--r--config/samples/lnd.sampleb.conf22
-rw-r--r--config/samples/lnurl.sample.js34
6 files changed, 167 insertions, 0 deletions
diff --git a/config/samples/bitcoin.sample.conf b/config/samples/bitcoin.sample.conf
new file mode 100644
index 00000000..25e6961e
--- /dev/null
+++ b/config/samples/bitcoin.sample.conf
@@ -0,0 +1,14 @@
+# This file should be named bitcoin.conf and reside in your ~/.bitcoin directory
+
+rpcuser=user
+rpcauth=user:9ea3339caaaa3046a286779895d57222150f42840596dbbf32823a593cd599114738d9de0d0f9a6e9365512492322a36
+rpcpassword=f-7mLj4qOocraqqeXzzfNSNaj912UsxtNapuQcHv7Kk=
+rpcallowip=172.18.0.0/24
+whitelist=192.168.1.0/24
+testnet=1
+txindex=1
+zmqpubrawblock=tcp://0.0.0.0:18504
+zmqpubrawtx=tcp://0.0.0.0:18505
+datadir=/home/user/data/.bitcoin_testnet
+server=1
+daemon=1
diff --git a/config/samples/config.sample.json b/config/samples/config.sample.json
new file mode 100644
index 00000000..f3cfd309
--- /dev/null
+++ b/config/samples/config.sample.json
@@ -0,0 +1,26 @@
+{
+ "development": {
+ "username": "root",
+ "password": "password",
+ "database": "coinos",
+ "host": "localhost",
+ "dialect": "mariadb",
+ "dialectOptions": { "multipleStatements": true, "timezone": "Etc/GMT+7" }
+ },
+ "test": {
+ "username": "root",
+ "password": null,
+ "database": "database_test",
+ "host": "127.0.0.1",
+ "dialect": "mariadb",
+ "dialectOptions": { "multipleStatements": true, "timezone": "Etc/GMT+7" }
+ },
+ "production": {
+ "username": "root",
+ "password": null,
+ "database": "database_production",
+ "host": "127.0.0.1",
+ "dialect": "mariadb",
+ "dialectOptions": { "multipleStatements": true, "timezone": "Etc/GMT+7" }
+ }
+}
diff --git a/config/samples/index.sample.js b/config/samples/index.sample.js
new file mode 100644
index 00000000..64070063
--- /dev/null
+++ b/config/samples/index.sample.js
@@ -0,0 +1,49 @@
+const dbOptions = require("./config.json")[process.env.NODE_ENV || "development"];
+const lnurl = require("./lnurl");
+
+module.exports = {
+ lnurl,
+ clientVersion: "x11111xx11xx11x11x11111111xx1111111xx111",
+ vapid: {
+ url: "https://coinos.io/",
+ publicKey:
+ "xxxxxx111xxxx1xxx111xxxxxxxxxxxxxxxxx_x-xxx1xxx1xxxxxxxx1xxxxxxxxx1x1xxxxxxxx1xxx1xxxxx",
+ privateKey: "1xxx1x1xxxxx1xxx1x-xx_xxxx1xxxxx1x1xxx1x1x1"
+ },
+ dbOptions,
+ ipstack: "2e1805258268b4992ebac06e20fc1865", // optional, set default currency based on IP
+ jwt: '2ad260b2202ad557b205ba17c7d8d62c69ffc95021b6147597c32eb30e3cf899',
+ port: 3119,
+ facebook: {
+ appToken: '290368338052652|WorpE7Brn61TTKUOQUyy1T8cKvc',
+ specialFriend: '10102176487832944',
+ },
+ bitcoin: {
+ username: "user",
+ password: "password",
+ network: "regtest",
+ port: 18443,
+ zmqrawblock: "tcp://127.0.0.1:18506",
+ zmqrawtx: "tcp://127.0.0.1:18507"
+ },
+ liquid: {
+ username: "user",
+ password: "password",
+ network: "regtest",
+ port: 18882,
+ zmqrawblock: "tcp://127.0.0.1:18602",
+ zmqrawtx: "tcp://127.0.0.1:18603",
+ btcasset: "b2e15d0d7a0c94e4e2ce0fe6e8691b9e451377f6e46e8045a86f7c4b5d4f0f23", // find with elements-cli dumpassetlabels
+ },
+ lna: {
+ server: 'localhost:10001',
+ tls: '/home/user/.lnd.testa/tls.cert',
+ macaroon: '/home/user/.lnd.testa/data/chain/bitcoin/testnet/admin.macaroon',
+ },
+ lnb: {
+ server: 'localhost:10002',
+ tls: '/home/user/.lnd.testb/tls.cert',
+ macaroon: '/home/user/.lnd.testb/data/chain/bitcoin/testnet/admin.macaroon',
+ id: '029654df009f907a2f513d944fc9456c6cac5f3a9c34dab85289e1425856c1b0fe', // find with lightning-cli getinfo
+ },
+}
diff --git a/config/samples/lnd.samplea.conf b/config/samples/lnd.samplea.conf
new file mode 100644
index 00000000..2cf0d05c
--- /dev/null
+++ b/config/samples/lnd.samplea.conf
@@ -0,0 +1,22 @@
+# This file should be named lnd.conf and reside at /home/user/.lnd.testa/lnd.conf
+
+externalip=66.186.251.69
+alias=🚀 Cool Node Name 👁
+color=#FF3200
+rpclisten=0.0.0.0:10001
+restlisten=0.0.0.0:8003
+listen=0.0.0.0:9736
+datadir=/home/user/.lnd.testa/data
+tlscertpath=/home/user/.lnd.testa/tls.cert
+tlskeypath=/home/user/.lnd.testa/tls.key
+
+[Bitcoin]
+bitcoin.active=1
+bitcoin.node=bitcoind
+bitcoin.testnet=1
+
+[bitcoind]
+bitcoind.rpcpass=f-7mLj4qOocraqqeXzzfNSNaj912UsxtNapuQcHv7Kk=
+bitcoind.rpcuser=user
+bitcoind.zmqpubrawblock=tcp://127.0.0.1:18504
+bitcoind.zmqpubrawtx=tcp://127.0.0.1:18505
diff --git a/config/samples/lnd.sampleb.conf b/config/samples/lnd.sampleb.conf
new file mode 100644
index 00000000..1ed55fe7
--- /dev/null
+++ b/config/samples/lnd.sampleb.conf
@@ -0,0 +1,22 @@
+# This file should be named lnd.conf and reside at /home/user/.lnd.testb/lnd.conf
+
+externalip=66.186.251.69
+alias=🚀 Cool Node Name 👁
+color=#FF3200
+rpclisten=0.0.0.0:10002
+restlisten=0.0.0.0:8002
+listen=0.0.0.0:9737
+datadir=/home/user/.lnd.testb/data
+tlscertpath=/home/user/.lnd.testb/tls.cert
+tlskeypath=/home/user/.lnd.testb/tls.key
+
+[Bitcoin]
+bitcoin.active=1
+bitcoin.node=bitcoind
+bitcoin.testnet=1
+
+[bitcoind]
+bitcoind.rpcpass=f-7mLj4qOocraqqeXzzfNSNaj912UsxtNapuQcHv7Kk=
+bitcoind.rpcuser=user
+bitcoind.zmqpubrawblock=tcp://127.0.0.1:18504
+bitcoind.zmqpubrawtx=tcp://127.0.0.1:18505
diff --git a/config/samples/lnurl.sample.js b/config/samples/lnurl.sample.js
new file mode 100644
index 00000000..d4cfe410
--- /dev/null
+++ b/config/samples/lnurl.sample.js
@@ -0,0 +1,34 @@
+module.exports = {
+ host: "localhost",
+ port: 3118,
+ protocol: "http",
+ url: "http://localhost:8085",
+ auth: {
+ apiKeys: [
+ {
+ id: "50bdeb634d",
+ key: "ac9bdd15a983072311c74c13877d122f16a27a8f40cb4dfa5014eece4da5cda2"
+ }
+ ]
+ },
+ lightning: {
+ backend: "lnd",
+ config: {
+ hostname: "localhost:8005",
+ cert: "/home/user/.lnd.sima/tls.cert",
+ macaroon: "/home/user/.lnd.sima/data/chain/bitcoin/regtest/admin.macaroon"
+ }
+ },
+ store: {
+ backend: "knex",
+ config: {
+ client: "mysql",
+ connection: {
+ host: "localhost",
+ user: "root",
+ password: "password",
+ database: "coinos"
+ }
+ }
+ }
+};