Move nginx config and cert generation to box code
This commit is contained in:
committed by
Johannes Zellner
parent
16ab523cb2
commit
cc9904c8c7
@@ -35,6 +35,9 @@ exports = module.exports = {
|
||||
isDev: isDev,
|
||||
isDemo: isDemo,
|
||||
|
||||
tlsCert: tlsCert,
|
||||
tlsKey: tlsKey,
|
||||
|
||||
// for testing resets to defaults
|
||||
_reset: _reset
|
||||
};
|
||||
@@ -216,3 +219,13 @@ function isDemo() {
|
||||
function provider() {
|
||||
return get('provider');
|
||||
}
|
||||
|
||||
function tlsCert() {
|
||||
var certFile = path.join(baseDir(), 'configs/host.cert');
|
||||
return safe.fs.readFileSync(certFile, 'utf8');
|
||||
}
|
||||
|
||||
function tlsKey() {
|
||||
var keyFile = path.join(baseDir(), 'configs/host.key');
|
||||
return safe.fs.readFileSync(keyFile, 'utf8');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user