arma-server-web-admin/config.docker.js
Björn Dahlgren 09743cf9dd Docker
2022-12-28 18:27:08 +01:00

26 lines
856 B
JavaScript

for (var environmentVariable of ['GAME_TYPE', 'GAME_PATH']) {
if (!process.env[environmentVariable]) {
console.log('Missing required environment variable "' + environmentVariable + '"')
process.exit(1)
}
}
module.exports = {
game: process.env.GAME_TYPE,
path: process.env.GAME_PATH,
port: process.env.PORT || 3000,
host: process.env.HOST || '0.0.0.0',
type: 'linux',
additionalConfigurationOptions: process.env.SERVER_ADDITIONAL_CONFIG,
parameters: (process.env.SERVER_PARAMETERS || '').split(','),
serverMods: (process.env.SERVER_MODS || '').split(','),
admins: (process.env.SERVER_ADMINS || '').split(','),
auth: {
username: process.env.AUTH_USERNAME,
password: process.env.AUTH_PROCESS
},
prefix: process.env.SERVER_PREFIX,
suffix: process.env.SERVER_SUFFIX,
logFormat: process.env.LOG_FORMAT || 'dev'
}