aboutsummaryrefslogtreecommitdiffstats
path: root/sampleconfig
diff options
context:
space:
mode:
authorRan Guin <[email protected]>2021-06-17 09:41:43 -0700
committerRan Guin <[email protected]>2021-06-17 09:41:43 -0700
commit174bb15fd973bc12a764f68e36319b25403fd243 (patch)
tree5d8ba48bfe5e9c1267ea40bb718b43ae5c06bbf2 /sampleconfig
parent2eff666f7b90ab0251a099d31495e72b9ae1f4ea (diff)
downloadcoinos-server-174bb15fd973bc12a764f68e36319b25403fd243.tar.gz
coinos-server-174bb15fd973bc12a764f68e36319b25403fd243.zip
add mailgun keys; use standard knexfile for db connections
Diffstat (limited to 'sampleconfig')
-rw-r--r--sampleconfig/index.js17
1 files changed, 5 insertions, 12 deletions
diff --git a/sampleconfig/index.js b/sampleconfig/index.js
index 0d366917..c2f2b0f5 100644
--- a/sampleconfig/index.js
+++ b/sampleconfig/index.js
@@ -1,13 +1,6 @@
const debug = require("debug")("test");
-const db = {
- user: "root",
- password: "password",
- database: "coinos",
- host: "maria",
- dialect: "mariadb",
- dialectOptions: { multipleStatements: true, timezone: "Etc/GMT+7" },
-};
+const db = require('./knexfile.js')[process.env.NODE_ENV || 'development']
const btcasset =
"5ac9f65c0efcc4775e0baec4ec03abdde22473cd3cf33c0419ca290e0751b225";
@@ -15,10 +8,6 @@ const btcasset =
module.exports = {
db,
clientVersion: "3b96359d6a6ce68fe4a32f495fc9a6f78af0aa63",
- knex: {
- client: "mysql2",
- connection: db,
- },
jwt: "secret",
port: 3119,
bitcoin: {
@@ -51,4 +40,8 @@ module.exports = {
clightning: true,
dir: "/app/config/lightning/regtest",
},
+ mailgun: {
+ apiKey: "key-59cd7ea2286ae3553d6b50cf7ddf924e",
+ domain: "coinos.io"
+ }
};