diff --git a/ConfigBasic.js b/ConfigBasic.js index c71cc10..f7900a4 100644 --- a/ConfigBasic.js +++ b/ConfigBasic.js @@ -1,13 +1,18 @@ module.exports={ protocol: 'http', - host: 'server.vic.yuanjin.net', + host: 'localhost', port: undefined, - // 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置: - sslType: 'file', // greenlock or file - sslDomainList: ['wapp.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, + + production: { + protocol: 'httpall', + host: 'wapp.vic.yuanjin.net', + // 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置: + sslType: 'file', // greenlock or file + sslDomainList: ['wapp.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: { from: './dist', // 待部署到的文件夹 diff --git a/ConfigCustom.js b/ConfigCustom.js index 28f9556..054eb83 100644 --- a/ConfigCustom.js +++ b/ConfigCustom.js @@ -1,6 +1,3 @@ module.exports={ - sslType: 'file', - 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, + } \ No newline at end of file