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:
parent
d7299014d1
commit
346696673d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user