vite-plugin-cpanel-ssl
v1.1.0
Published
Automatically use your cPanel SSL certs and keys for the Vite dev server
Maintainers
Readme
Vite Plugin cPanel SSL
Simple, zero-dependency plugin for Vite that is designed for dev servers running in a WHM/cPanel environment.
Your cPanel-issued SSL certificate and key will automatically be used, allowing your to access your Vite dev server over your standard https domain.
Installation
pnpm add -D vite-plugin-cpanel-sslBasic Usage
Simply import the plugin and add it to your Vite config plugins array:
import cPanelSSL from "vite-plugin-cpanel-ssl";
export default {
plugins: [
cPanelSSL({
domain: "my-domain.com",
}),
],
};You can optionally pass a config object too:
plugins: [
cPanelSSL({
enable: env.SOME_CONDITION,
domain: "override-ssl-domain.com"
})
],Support Open-Source Software
We're providing this community adapter free-of-charge without any paywalled features. However, all development and maintenance costs time, energy and money. So please help fund this project if you can.
