mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-26 15:12:47 -05:00
Add command line flag for enabling production cert
This commit is contained in:
@@ -79,6 +79,7 @@ function initApp({ username, password, baseURL, getInitialState, onMessage }) {
|
||||
|
||||
export default async function initWebServer({
|
||||
certDir,
|
||||
certProduction,
|
||||
email,
|
||||
url: baseURL,
|
||||
hostname: overrideHostname,
|
||||
@@ -110,7 +111,7 @@ export default async function initWebServer({
|
||||
dataDir: certDir,
|
||||
commonName: hostname,
|
||||
email,
|
||||
production: process.env.NODE_DEV === 'production',
|
||||
production: certProduction,
|
||||
serverHost: overrideHostname || hostname,
|
||||
})
|
||||
server = https.createServer({ key, cert }, app.callback())
|
||||
|
||||
Reference in New Issue
Block a user