aboutsummaryrefslogtreecommitdiffstats
path: root/config/index.sample.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2020-01-06 10:32:27 -0800
committerAdam Soltys <[email protected]>2020-01-06 10:34:46 -0800
commit72b9bd0c3785da4338ea233aa3667f138a93d520 (patch)
treecb85c9bc97f0d0dd5dfbbe64b41d06f584d17c8b /config/index.sample.js
parent319726f79673d22642536cebbab746ccef0ff2ae (diff)
downloadcoinos-server-72b9bd0c3785da4338ea233aa3667f138a93d520.tar.gz
coinos-server-72b9bd0c3785da4338ea233aa3667f138a93d520.zip
drop sequelize-auto
Diffstat (limited to 'config/index.sample.js')
-rw-r--r--config/index.sample.js23
1 files changed, 2 insertions, 21 deletions
diff --git a/config/index.sample.js b/config/index.sample.js
index ddb1c347..f4b32453 100644
--- a/config/index.sample.js
+++ b/config/index.sample.js
@@ -1,4 +1,4 @@
-import db from './config.json'
+const dbOptions = require("./config.json")[process.env.NODE_ENV || "development"];
module.exports = {
jwt: '2ad260b2202ad557b205ba17c7d8d62c69ffc95021b6147597c32eb30e3cf899',
@@ -12,7 +12,7 @@ module.exports = {
sid: 'AC2836311228c04e499e4eeb3a139a352b',
},
port: 3119,
- db,
+ dbOptions,
facebook: {
appToken: '290368338052652|WorpE7Brn61TTKUOQUyy1T8cKvc',
specialFriend: '10102176487832944',
@@ -48,24 +48,5 @@ module.exports = {
host: "localhost",
dialect: "mysql",
tables: ["users", "payments"],
- logging: false,
- directory: false,
- operatorsAliases: false,
- dialectOptions: {
- timeout: 500000,
- multipleStatements: true
- },
- pool: {
- min: 0,
- max: 25
- },
- retry: {
- max: 5
- }
- },
- quad: {
- "key": "",
- "secret": "",
- "client_id": "",
},
}