u
This commit is contained in:
parent
4b9b784585
commit
0c327b9c42
16
webserver.js
16
webserver.js
@ -14,10 +14,22 @@ const wo = (global.wo = {
|
|||||||
['webSsl', '--webSsl <string>', 'SSL options in JSON string.'],
|
['webSsl', '--webSsl <string>', 'SSL options in JSON string.'],
|
||||||
],
|
],
|
||||||
// 最基础的必须的默认配置,如果用户什么也没有提供
|
// 最基础的必须的默认配置,如果用户什么也没有提供
|
||||||
webProtocol: 'http',
|
webProtocol: process.env.NODE_ENV !== 'production' ? 'http' : 'httpall',
|
||||||
webHostname: 'localhost',
|
webHostname: 'localhost',
|
||||||
webRoot: '_webroot', // local path to serve as webroot
|
webPort: process.env.NODE_ENV !== 'production' ? 8338 : undefined,
|
||||||
|
webRoot: process.env.NODE_ENV !== 'production' ? 'unpackage/dist/build/h5' : '_webroot', // local path to serve as webroot
|
||||||
webIndex: 'index.html',
|
webIndex: 'index.html',
|
||||||
|
webSsl:
|
||||||
|
process.env.NODE_ENV !== 'production'
|
||||||
|
? undefined
|
||||||
|
: {
|
||||||
|
type: 'file', // greenlock or file
|
||||||
|
file: {
|
||||||
|
key: './ssl/privkey.pem', // ssl key file,
|
||||||
|
cert: './ssl/fullchain.pem', // ssl cert file,
|
||||||
|
ca: './ssl/chain.pem', // ssl ca file,
|
||||||
|
},
|
||||||
|
},
|
||||||
// 如果使用虚拟主机
|
// 如果使用虚拟主机
|
||||||
/*
|
/*
|
||||||
vhosts: [
|
vhosts: [
|
||||||
|
Loading…
Reference in New Issue
Block a user