Move nginx config and cert generation to box code

This commit is contained in:
Girish Ramakrishnan
2017-01-05 14:38:36 -08:00
committed by Johannes Zellner
parent 16ab523cb2
commit cc9904c8c7
5 changed files with 61 additions and 34 deletions

View File

@@ -641,8 +641,8 @@ function doUpdate(boxUpdateInfo, callback) {
apiServerOrigin: config.apiServerOrigin(),
webServerOrigin: config.webServerOrigin(),
fqdn: config.fqdn(),
tlsCert: fs.readFileSync(path.join(paths.NGINX_CERT_DIR, 'host.cert'), 'utf8'),
tlsKey: fs.readFileSync(path.join(paths.NGINX_CERT_DIR, 'host.key'), 'utf8'),
tlsCert: config.tlsCert(),
tlsKey: config.tlsKey(),
isCustomDomain: config.isCustomDomain(),
isDemo: config.isDemo(),