mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-05 04:13:08 +02:00
Add support for non-default database ports
This commit is contained in:
parent
74fa568a7c
commit
52633122c7
@ -2,6 +2,7 @@ DISCORD_TOKEN=
|
||||
HTTP_PORT=8080
|
||||
DB_TYPE=sqlite
|
||||
DB_HOST=
|
||||
DB_PORT=
|
||||
DB_NAME=
|
||||
DB_USER=
|
||||
DB_PASS=
|
||||
|
@ -12,6 +12,7 @@ module.exports = async (log) => {
|
||||
const {
|
||||
DB_TYPE,
|
||||
DB_HOST,
|
||||
DB_PORT,
|
||||
DB_USER,
|
||||
DB_PASS,
|
||||
DB_NAME,
|
||||
@ -47,6 +48,7 @@ module.exports = async (log) => {
|
||||
sequelize = new Sequelize(DB_NAME, DB_USER, DB_PASS, {
|
||||
dialect: types[type].dialect,
|
||||
host: DB_HOST,
|
||||
port: DB_PORT,
|
||||
logging: log.debug
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user