add 'production' section to config files

This commit is contained in:
Luk Lu
2019-12-14 01:11:30 +08:00
parent 415071433c
commit 8b9868abf8
2 changed files with 13 additions and 11 deletions

View File

@@ -1,13 +1,18 @@
module.exports={ module.exports={
protocol: 'http', protocol: 'http',
host: 'server.vic.yuanjin.net', host: 'localhost',
port: undefined, port: undefined,
// 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置:
sslType: 'file', // greenlock or file production: {
sslDomainList: ['wapp.vic.yuanjin.net'], protocol: 'httpall',
sslKey: '/etc/letsencrypt/live/server.vic.yuanjin.net/privkey.pem', // ssl key file, host: 'wapp.vic.yuanjin.net',
sslCert: '/etc/letsencrypt/live/server.vic.yuanjin.net/fullchain.pem', // ssl cert file, // 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置:
sslCA: '/etc/letsencrypt/live/server.vic.yuanjin.net/bundle.pem', // ssl ca file, 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: { deploy: {
from: './dist', // 待部署到的文件夹 from: './dist', // 待部署到的文件夹

View File

@@ -1,6 +1,3 @@
module.exports={ 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,
} }