Skip to content

Commit

Permalink
chore: migrate credentials to dotenv file
Browse files Browse the repository at this point in the history
  • Loading branch information
mzrtamp committed Mar 7, 2024
1 parent b2cad9a commit 0732915
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { Sequelize } from "sequelize";

const client = new Sequelize({
dialect: "mariadb",
port: 3306,
host: "localhost",
username: "root",
password: "youshallnotpass"
host: process.env.DB_HOST || "localhost",
port: parseInt(process.env.DB_PORT || "3306"),
username: process.env.DB_USERNAME || "root",
password: process.env.DB_PASSWORD || "youshallnotpass",
});

export default client;

0 comments on commit 0732915

Please sign in to comment.