npm-live-server https command line configuration?

713 Views Asked by At

I am running live server from command line:

live-server --port=8282 --host=192.168.1.231 --https=/home/.nvm/versions/node/v14.8.0/lib/node_modules/live-server-https --entry-file=/index.html

I would like to add my own cert like example below:

{
  "liveServer.settings.https": {
    "enable": true, //set it true to enable the feature.
    "cert": "D:\\https\\primary.crt", //full path of the certificate
    "key": "D:\\https\\private.key", //full path of the private key
    "passphrase": "12345"
  }
}

What is a correct format in .live-server.json or cmd line argument?

0

There are 0 best solutions below