add Config*.js
This commit is contained in:
22
ConfigBasic.js
Normal file
22
ConfigBasic.js
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
module.exports={
|
||||||
|
protocol: 'httpall',
|
||||||
|
host: 'server.vic.yuanjin.net',
|
||||||
|
port: undefined,
|
||||||
|
// 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置:
|
||||||
|
sslType: 'file', // greenlock or file
|
||||||
|
sslDomainList: ['server.vic.yuanjin.net'],
|
||||||
|
sslKey: '/etc/letsencrypt/live/server.vic.yuanjin.net/privkey.pem', // ssl key file,
|
||||||
|
sslCert: '/etc/letsencrypt/live/server.vic.yuanjin.net/fullchain.pem', // ssl cert file,
|
||||||
|
sslCA: '/etc/letsencrypt/live/server.vic.yuanjin.net/bundle.pem', // ssl ca file,
|
||||||
|
|
||||||
|
deploy: {
|
||||||
|
type: 'web',
|
||||||
|
host: 'server.vic.yuanjin.net', // 待部署到的主机
|
||||||
|
port: '22', // 带部署到的主机的 SSH 端口
|
||||||
|
dir: '/home/adot/APPNAME', // 待部署到的目录路径
|
||||||
|
dist: 'dist', // 待部署到的文件夹
|
||||||
|
user: 'adot', // 登录用户名
|
||||||
|
password: '', // 登录用户密码
|
||||||
|
key: `${process.env.HOME}/.ssh/id_rsa`, // 登录用户私钥文件
|
||||||
|
},
|
||||||
|
}
|
||||||
6
ConfigCustom.js
Normal file
6
ConfigCustom.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
module.exports={
|
||||||
|
sslType: 'file',
|
||||||
|
sslKey: '/etc/letsencrypt/live/server4test.vic.yuanjin.net/privkey.pem', // ssl key file,
|
||||||
|
sslCert: '/etc/letsencrypt/live/server4test.vic.yuanjin.net/fullchain.pem', // ssl cert file,
|
||||||
|
sslCA: '/etc/letsencrypt/live/server4test.vic.yuanjin.net/bundle.pem', // ssl ca file,
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user