diff options
| author | Adam Soltys <[email protected]> | 2020-01-06 10:32:27 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2020-01-06 10:34:46 -0800 |
| commit | 72b9bd0c3785da4338ea233aa3667f138a93d520 (patch) | |
| tree | cb85c9bc97f0d0dd5dfbbe64b41d06f584d17c8b /config | |
| parent | 319726f79673d22642536cebbab746ccef0ff2ae (diff) | |
| download | coinos-server-72b9bd0c3785da4338ea233aa3667f138a93d520.tar.gz coinos-server-72b9bd0c3785da4338ea233aa3667f138a93d520.zip | |
drop sequelize-auto
Diffstat (limited to 'config')
| -rw-r--r-- | config/config.sample.json | 18 | ||||
| -rw-r--r-- | config/index.sample.js | 23 |
2 files changed, 2 insertions, 39 deletions
diff --git a/config/config.sample.json b/config/config.sample.json index 70ea62a7..e3a1ed07 100644 --- a/config/config.sample.json +++ b/config/config.sample.json @@ -19,23 +19,5 @@ "database": "database_production", "host": "127.0.0.1", "dialect": "mysql" - }, - "auto": { - "host": "localhost", - "dialect": "mysql", - "tables": ["users"], - "logging": false, - "directory": false, - "dialectOptions": { - "timeout": 500000, - "multipleStatements": true - }, - "pool": { - "min": 0, - "max": 25 - }, - "retry": { - "max": 5 - } } } 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": "", }, } |
