mirror of
https://github.com/muerwre/orchidmap-front.git
synced 2025-04-25 11:06:40 +07:00
fixed config paths
This commit is contained in:
parent
9c0038f0a3
commit
bf1b92fdf1
18 changed files with 92 additions and 124 deletions
|
@ -1,15 +1,16 @@
|
|||
const user = 'user';
|
||||
const password = 'password';
|
||||
const hostname = 'vault48.org';
|
||||
const port = 27017;
|
||||
const db = 'map';
|
||||
const { CONFIG } = require('../../config/backend');
|
||||
|
||||
const {
|
||||
DB: {
|
||||
USER, PASSWORD, HOSTNAME, PORT, DATABASE
|
||||
}
|
||||
} = CONFIG;
|
||||
|
||||
const mongoose = require('mongoose');
|
||||
mongoose.Promise = require('bluebird');
|
||||
|
||||
mongoose.connect(`mongodb://${user}:${password}@${hostname}:${port}/${db}`, { });
|
||||
mongoose.connect(`mongodb://${USER}:${PASSWORD}@${HOSTNAME}:${PORT}/${DATABASE}`, { });
|
||||
const database = mongoose.connection;
|
||||
|
||||
database.on('error', (err) => { console.error(`Database Connection Error: ${err}`); process.exit(2); });
|
||||
database.on('connected', () => { console.info('Succesfully connected to MongoDB Database'); });
|
||||
|
||||
|
|
|
@ -1,6 +0,0 @@
|
|||
module.exports.SOCIAL = {
|
||||
VK: {
|
||||
client_secret: 'Z71DsxoMF7PS9kayLuks',
|
||||
client_id: 5987644,
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue