aboutsummaryrefslogtreecommitdiffstats
path: root/config
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
parent3c46dc86b753cdfd71da7b8bb86710032668b5eb (diff)
downloadcoinos-server-d6af21064d106e6179d76e0dddee049c5e7c0fc5.tar.gz
coinos-server-d6af21064d106e6179d76e0dddee049c5e7c0fc5.zip
lnurl auth
Diffstat (limited to 'config')
-rw-r--r--config/samples/bitcoin.sample.conf (renamed from config/bitcoin.sample.conf)0
-rw-r--r--config/samples/config.sample.json (renamed from config/config.sample.json)9
-rw-r--r--config/samples/index.sample.js (renamed from config/index.sample.js)2
-rw-r--r--config/samples/lnd.samplea.conf (renamed from config/lnd.samplea.conf)0
-rw-r--r--config/samples/lnd.sampleb.conf (renamed from config/lnd.sampleb.conf)0
-rw-r--r--config/samples/lnurl.sample.js34
6 files changed, 42 insertions, 3 deletions
diff --git a/config/bitcoin.sample.conf b/config/samples/bitcoin.sample.conf
index 25e6961e..25e6961e 100644
--- a/config/bitcoin.sample.conf
+++ b/config/samples/bitcoin.sample.conf
diff --git a/config/config.sample.json b/config/samples/config.sample.json
index e3a1ed07..f3cfd309 100644
--- a/config/config.sample.json
+++ b/config/samples/config.sample.json
@@ -4,20 +4,23 @@
"password": "password",
"database": "coinos",
"host": "localhost",
- "dialect": "mysql"
+ "dialect": "mariadb",
+ "dialectOptions": { "multipleStatements": true, "timezone": "Etc/GMT+7" }
},
"test": {
"username": "root",
"password": null,
"database": "database_test",
"host": "127.0.0.1",
- "dialect": "mysql"
+ "dialect": "mariadb",
+ "dialectOptions": { "multipleStatements": true, "timezone": "Etc/GMT+7" }
},
"production": {
"username": "root",
"password": null,
"database": "database_production",
"host": "127.0.0.1",
- "dialect": "mysql"
+ "dialect": "mariadb",
+ "dialectOptions": { "multipleStatements": true, "timezone": "Etc/GMT+7" }
}
}
diff --git a/config/index.sample.js b/config/samples/index.sample.js
index fe87920d..64070063 100644
--- a/config/index.sample.js
+++ b/config/samples/index.sample.js
@@ -1,6 +1,8 @@
const dbOptions = require("./config.json")[process.env.NODE_ENV || "development"];
+const lnurl = require("./lnurl");
module.exports = {
+ lnurl,
clientVersion: "x11111xx11xx11x11x11111111xx1111111xx111",
vapid: {
url: "https://coinos.io/",
diff --git a/config/lnd.samplea.conf b/config/samples/lnd.samplea.conf
index 2cf0d05c..2cf0d05c 100644
--- a/config/lnd.samplea.conf
+++ b/config/samples/lnd.samplea.conf
diff --git a/config/lnd.sampleb.conf b/config/samples/lnd.sampleb.conf
index 1ed55fe7..1ed55fe7 100644
--- a/config/lnd.sampleb.conf
+++ b/config/samples/lnd.sampleb.conf
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"
+ }
+ }
+ }
+};