mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-23 06:33:10 +01:00
Backend
This commit is contained in:
1 parent
9e919c3c24
commit
80d78cbf25
39 files changed
+2837
No files matched your search
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
let config = require('config');
|
||||
|
||||
if (!config.has('database')) {
|
||||
throw new Error('Database config does not exist! Read the README for instructions.');
|
||||
}
|
||||
|
||||
let knex = require('knex')({
|
||||
client: config.database.engine,
|
||||
connection: {
|
||||
host: config.database.host,
|
||||
user: config.database.user,
|
||||
password: config.database.password,
|
||||
database: config.database.name,
|
||||
port: config.database.port
|
||||
},
|
||||
migrations: {
|
||||
tableName: 'migrations'
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = knex;
|
||||
Reference in new issue
Block a user