feat: add reverse proxy support with configurable base path and trust proxy settings (#47)

This commit is contained in:
M Firdaus Riawan 2025-09-02 19:32:55 +07:00 • committed by GitHub
commit 62860a658c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 204 additions and 9 deletions

View file

@ -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
}