13 lines
631 B
JavaScript
13 lines
631 B
JavaScript
const inDev = global.inDev || global.envar?.inDev || process.env.NODE_ENV !== 'production' // 用 production 测试,防止 NODE_ENV 未定义
|
|
|
|
module.exports = {
|
|
protocol: inDev ? 'http' : 'httpall',
|
|
host: inDev ? 'localhost' : 'vic-user.bittic.org',
|
|
port: undefined,
|
|
sslType: 'file', // greenlock or file
|
|
sslDomainList: ['vic-user.bittic.org'],
|
|
sslKey: '/etc/letsencrypt/live/vic-server.bittic.org/privkey.pem', // ssl key file,
|
|
sslCert: '/etc/letsencrypt/live/vic-server.bittic.org/fullchain.pem', // ssl cert file,
|
|
sslCA: '/etc/letsencrypt/live/vic-server.bittic.org/bundle.pem', // ssl ca file,
|
|
}
|