Skip to content

Commit a15f12f

Browse files
add comments
1 parent 6c2a427 commit a15f12f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

server/controllers/mysqlData.controller.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ dotenv.config();
66

77
const mySQLdataController = {};
88

9+
// SSL data stored as environment variable for GitHub Actions access
10+
// Also stored in .cert file because Elastic Beanstalk has a ~4000 char limit for its environment variables
911
const SSL_KEY =
1012
typeof process.env.SSL_KEY === 'string'
1113
? Buffer.from(process.env.SSL_KEY, 'base64').toString('ascii')

server/models/userModel.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ const dotenv = require('dotenv');
66
dotenv.config();
77

88
const { USER_DB_USER, USER_DB_PW } = process.env;
9+
10+
// SSL data stored as environment variable for GitHub Actions access
11+
// Also stored in .cert file because Elastic Beanstalk has a ~4000 char limit for its environment variables
912
const SSL_KEY =
1013
typeof process.env.SSL_KEY === 'string'
1114
? Buffer.from(process.env.SSL_KEY, 'base64').toString('ascii')

0 commit comments

Comments
 (0)