-
Thanks in advance~ I need to add the ssl certificate to support https access from internet, here is ./docs/.vitepress/config.js module.exports = {
server: {
https: {
cert: fs.readFileSync(path.join(__dirname, 'cert/cert.crt')),
key: fs.readFileSync(path.join(__dirname, 'cert/cert.key')),
ca: fs.readFileSync(path.join(__dirname, 'cert/ca.crt')),
}
}
} here is ./package.json {
"scripts": {
"docs:dev": "vitepress dev docs --port 3002 --https",
},
} With the above config, run the server by "yarn docs:dev --host" successfully. But when access the Vitepress, always prompt "ERR_SSL_VERSION_OR_CIPHER_MISMATCH" Any help would be appreciated ! |
Beta Was this translation helpful? Give feedback.
Answered by
brc-dd
Sep 29, 2022
Replies: 1 comment
-
refer #1403 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
brc-dd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
refer #1403 (comment)