From e8ad2705380b38427002ed3e7af0935f1080039e Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Thu, 24 Oct 2019 23:30:09 +0800 Subject: [PATCH] add Config*.js --- ConfigBasic.js | 22 ++++++++++++++++++++++ ConfigCustom.js | 6 ++++++ 2 files changed, 28 insertions(+) create mode 100644 ConfigBasic.js create mode 100644 ConfigCustom.js diff --git a/ConfigBasic.js b/ConfigBasic.js new file mode 100644 index 0000000..ebb50e6 --- /dev/null +++ b/ConfigBasic.js @@ -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`, // 登录用户私钥文件 + }, +} \ No newline at end of file diff --git a/ConfigCustom.js b/ConfigCustom.js new file mode 100644 index 0000000..cc4072b --- /dev/null +++ b/ConfigCustom.js @@ -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, +} \ No newline at end of file