1
0
mirror of https://github.com/bitwarden/web synced 2025-12-06 00:03:28 +00:00

rename dev cert to shared

This commit is contained in:
Kyle Spearrin
2018-06-05 11:14:53 -04:00
parent 8d4bd1171b
commit 4315000905
3 changed files with 49 additions and 4 deletions

View File

@@ -123,11 +123,11 @@ if (ENV === 'production') {
});
}
let localSuffix = fs.existsSync('dev-server.local.pem') ? '.local' : '';
let certSuffix = fs.existsSync('dev-server.local.pem') ? '.local' : '.shared';
const serve = {
https: {
key: fs.readFileSync('dev-server' + localSuffix + '.pem'),
cert: fs.readFileSync('dev-server' + localSuffix + '.pem'),
key: fs.readFileSync('dev-server' + certSuffix + '.pem'),
cert: fs.readFileSync('dev-server' + certSuffix + '.pem'),
},
};