Skip to content

Commit

Permalink
Update server.js
Browse files Browse the repository at this point in the history
  • Loading branch information
peteryang1756 authored Jan 24, 2025
1 parent 7d461c5 commit 2705c2a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ app.use(cors({
}));

const pool = mysql.createPool({
host: 'mysql-3246291e-ssangyongsportsteam-7a0f.e.aivencloud.com',
user: 'avnadmin',
password: 'AVNS_dfFtGBB4DNc6gCrOex3',
host: process.env.DB_HOST,
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: 'defaultdb',
port: 13390,
ssl: {
Expand All @@ -27,7 +27,7 @@ const pool = mysql.createPool({
queueLimit: 0
});

const ADMIN_PASSWORD = 'ggghbrrfcgg';
const ADMIN_PASSWORD = process.env.ADMIN_PASSWORD;

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
Expand Down

0 comments on commit 2705c2a

Please sign in to comment.