Skip to content

Instantly share code, notes, and snippets.

@ramingar
Created July 26, 2021 15:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ramingar/6d740d644261f0d7e1892b103e776bb2 to your computer and use it in GitHub Desktop.
Save ramingar/6d740d644261f0d7e1892b103e776bb2 to your computer and use it in GitHub Desktop.
vue-cli-service serve https (with ssl cert/key) #vue #vue_cli_service #https #ssl #cert
//vue.config.js
const fs = require("fs");

module.exports = {
    devServer: {
        https: {
            key: fs.readFileSync('./key.pem'),
            cert: fs.readFileSync('./cert.pem')
        },
    },
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment