'updated'

This commit is contained in:
luk.lu
2022-07-21 12:12:53 +08:00
parent 8115d2bfdf
commit 425e3796c3
6 changed files with 31 additions and 35 deletions

12
envar-web-basic.js Normal file
View File

@@ -0,0 +1,12 @@
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,
}