allow changing ports

This commit is contained in:
Aidan 2024-12-14 12:41:27 -05:00
parent 2dce138037
commit b1be63bb4d
No known key found for this signature in database
GPG Key ID: 1773A01F0EFE4FC1
2 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@ DB_NAME=pontusmail
DB_USER=root
DB_PASSWORD=passwdhere
DB_HOST=127.0.0.1
DB_PORT=3306
SESSION_SECRET=secretkeyhere
ADMIN_USERNAME=admin
ADMIN_PASSWORD=admin

1
app.js
View File

@ -21,6 +21,7 @@ app.use(session({
const sequelize = new Sequelize(process.env.DB_NAME, process.env.DB_USER, process.env.DB_PASSWORD, {
host: process.env.DB_HOST || '127.0.0.1',
port: process.env.DB_PORT || 3306,
dialect: 'mysql'
});