feat: add reverse proxy support with configurable base path and trust proxy settings (#47)
This commit is contained in:
parent
70154165fa
commit
62860a658c
6 changed files with 204 additions and 9 deletions
|
|
@ -22,6 +22,8 @@ const logLevel = process.env.LOG_LEVEL || 'info'
|
|||
const enableWebHook = process.env.ENABLE_WEBHOOK ? (process.env.ENABLE_WEBHOOK).toLowerCase() === 'true' : true
|
||||
const enableWebSocket = process.env.ENABLE_WEBSOCKET ? (process.env.ENABLE_WEBSOCKET).toLowerCase() === 'true' : false
|
||||
const autoStartSessions = process.env.AUTO_START_SESSIONS ? (process.env.AUTO_START_SESSIONS).toLowerCase() === 'true' : true
|
||||
const basePath = process.env.BASE_PATH || ''
|
||||
const trustProxy = process.env.TRUST_PROXY ? (process.env.TRUST_PROXY).toLowerCase() === 'true' : false
|
||||
|
||||
module.exports = {
|
||||
sessionFolderPath,
|
||||
|
|
@ -43,5 +45,7 @@ module.exports = {
|
|||
logLevel,
|
||||
enableWebHook,
|
||||
enableWebSocket,
|
||||
autoStartSessions
|
||||
autoStartSessions,
|
||||
basePath,
|
||||
trustProxy
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue