Fully tested the remote database

Added default host for the admin account
This commit is contained in:
2024-05-03 09:22:45 +10:00
parent ab9e7456fb
commit cd34f0db5c
3 changed files with 10 additions and 11 deletions
+4
View File
@@ -170,11 +170,14 @@ See https://github.com/krgamestudios/MERN-template/wiki for help.
//MUST be at least 8 chars
let tmpPass = '';
let tmpHost = '';
while (defaultUser && tmpPass.length < 8) {
console.log('--All passwords must be at least 8 characters long--');
tmpPass = await question('Default Admin Pass', '');
tmpHost = await question('Default Admin Host', '');
}
const defaultPass = tmpPass;
const defaultHost = tmpHost;
if (defaultUser) {
console.log(`Default user email will be: ${defaultUser}@${authWebAddress}`);
@@ -281,6 +284,7 @@ services:
- MAIL_PASSWORD=${emailPass}
- MAIL_PHYSICAL=${emailPhysical}
- ADMIN_DEFAULT_USERNAME=${defaultUser}
- ADMIN_DEFAULT_HOSTNAME=${defaultHost}
- ADMIN_DEFAULT_PASSWORD=${defaultPass}
- SECRET_ACCESS=${accessToken}
- SECRET_REFRESH=${refreshToken}