From e14439ee17d4417c15be8f163a4b810942c8930a Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Sun, 15 Mar 2020 20:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E8=AF=AD=E6=B3=95=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/server.js b/server.js index 638d786..2397098 100644 --- a/server.js +++ b/server.js @@ -7,30 +7,6 @@ if (!Config || Object.keys(Config).length===0) { protocol: 'http', host: 'localhost', 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: [ @@ -128,7 +104,7 @@ if (!Config || Object.keys(Config).length===0) { }) } -} +})() // ==================== @@ -149,4 +125,4 @@ function getMyIp() { console.log('ERROR in getMyIP(): '+e.message) } return ipv4 -})() \ No newline at end of file +}