Updates SSL server to get paths from env vars

This commit is contained in:
Alicia Sykes 2021-11-09 22:54:43 +00:00
parent 5293b69115
commit cc89edd296
1 changed files with 2 additions and 2 deletions

View File

@ -7,8 +7,8 @@ const stat = promise(fs.stat);
module.exports = (app) => {
const httpsCerts = {
private: '/etc/ssl/certs/dashy-priv.key',
public: '/etc/ssl/certs/dashy-pub.pem',
private: process.env.SSL_PRIV_KEY_PATH || '/etc/ssl/certs/dashy-priv.key',
public: process.env.SSL_PUB_KEY_PATH || '/etc/ssl/certs/dashy-pub.pem',
};
const isDocker = !!process.env.IS_DOCKER;