修正语法错误

This commit is contained in:
陆柯 2020-03-15 20:08:09 +08:00
parent dc5dc64d8d
commit e14439ee17

View File

@ -7,30 +7,6 @@ if (!Config || Object.keys(Config).length===0) {
protocol: 'http', protocol: 'http',
host: 'localhost', host: 'localhost',
from: './dist', // local path to serve as webroot from: './dist', // local path to serve as webroot
production: {
protocol: 'httpall',
host: 'remote.domain',
// 如果使用 https 协议,必须填写以下内容,或在命令行参数中设置:
sslType: 'file', // '' or greenlock or file
sslKey: 'ssl/privkey.pem', // ssl key file,
sslCert: 'ssl/fullchain.pem', // ssl cert file,
sslCA: 'ssl/bundle.pem', // ssl ca file,
ssl: {
// greenlockOptions: {
// version: 'draft-11',
// server: 'https://acme-staging-v02.api.letsencrypt.org/directory', // for development
// // 'https://acme-v02.api.letsencrypt.org/directory', // for production
// agreeTos: true,
// communityMember: false,
// store: require('greenlock-store-fs'),
// email: 'ssl@faronear.org',
// approvedDomains: ['remote.domain'],
// configDir: path.resolve(__dirname, 'ssl'),
// }
},
},
// 如果使用虚拟主机 // 如果使用虚拟主机
/* /*
vhosts: [ vhosts: [
@ -128,7 +104,7 @@ if (!Config || Object.keys(Config).length===0) {
}) })
} }
} })()
// ==================== // ====================
@ -149,4 +125,4 @@ function getMyIp() {
console.log('ERROR in getMyIP(): '+e.message) console.log('ERROR in getMyIP(): '+e.message)
} }
return ipv4 return ipv4
})() }