1
0
mirror of https://github.com/mattermost/focalboard.git synced 2024-11-27 08:31:20 +02:00

MM-47793 Change product dev server to not use deprecated options (#4116)

This commit is contained in:
Harrison Healey 2022-11-07 17:53:57 -05:00 committed by GitHub
parent d7299014d1
commit 346696673d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,10 +206,13 @@ if (NPM_TARGET === 'start:product') {
const url = new URL(process.env.MM_BOARDS_DEV_SERVER_URL ?? 'http://localhost:9006');
config.devServer = {
https: url.protocol === 'https:' && {
minVersion: process.env.MM_SERVICESETTINGS_TLSMINVER,
key: process.env.MM_SERVICESETTINGS_TLSKEYFILE,
cert: process.env.MM_SERVICESETTINGS_TLSCERTFILE,
server: {
type: url.protocol.substring(0, url.protocol.length - 1),
options: {
minVersion: process.env.MM_SERVICESETTINGS_TLSMINVER ?? 'TLSv1.2',
key: process.env.MM_SERVICESETTINGS_TLSKEYFILE,
cert: process.env.MM_SERVICESETTINGS_TLSCERTFILE,
},
},
host: url.hostname,
port: url.port,