@@ -13,23 +13,23 @@ import agent
1313config = {
1414 "hostname" : os .getenv ("WEBTOP_HOSTNAME" , "" ),
1515 "request_https_certificate" : agent .get_route (os .environ ['MODULE_ID' ]).get ('lets_encrypt' , False ),
16- "locale" : os .environ [ "WEBTOP_LOCALE" ] ,
17- "timezone" : os .environ [ "WEBTOP_TIMEZONE" ] ,
16+ "locale" : os .getenv ( "WEBTOP_LOCALE" , "en_US" ) ,
17+ "timezone" : os .getenv ( "WEBTOP_TIMEZONE" , "-" ) ,
1818 "mail_module" : os .getenv ("MAIL_MODULE" , "" ),
1919 "mail_domain" : os .getenv ("MAIL_DOMAIN" , "" ),
2020 "ejabberd_module" : os .getenv ("EJABBERD_MODULE" , "" ),
2121 "ejabberd_domain" : os .getenv ("EJABBERD_DOMAIN" , "" ),
2222 "webapp" : {
23- "debug" : os .environ [ "WEBAPP_JS_DEBUG" ] .lower () in ('true' , '1' , 't' ),
24- "min_memory" : int (os .environ [ "WEBAPP_MIN_MEMORY" ] ),
25- "max_memory" : int (os .environ [ "WEBAPP_MAX_MEMORY" ] ),
23+ "debug" : os .getenv ( "WEBAPP_JS_DEBUG" , 'False' ) .lower () in ('true' , '1' , 't' ),
24+ "min_memory" : int (os .getenv ( "WEBAPP_MIN_MEMORY" , "512" ) ),
25+ "max_memory" : int (os .getenv ( "WEBAPP_MAX_MEMORY" , "1024" ) ),
2626 },
2727 "webdav" : {
28- "debug" : os .environ [ "WEBDAV_DEBUG" ] .lower () in ('true' , '1' , 't' ),
29- "loglevel" : os .environ [ "WEBDAV_LOG_LEVEL" ] ,
28+ "debug" : os .getenv ( "WEBDAV_DEBUG" , 'False' ) .lower () in ('true' , '1' , 't' ),
29+ "loglevel" : os .getenv ( "WEBDAV_LOG_LEVEL" , "ERROR" ) ,
3030 },
3131 "zpush" : {
32- "loglevel" : os .environ [ "Z_PUSH_LOG_LEVEL" ] ,
32+ "loglevel" : os .getenv ( "Z_PUSH_LOG_LEVEL" , "ERROR" ) ,
3333 },
3434 "pecbridge_admin_mail" : os .getenv ("PECBRIDGE_ADMIN_MAIL" , "" ),
3535 "pecbridge_from_address" : os .getenv ("PECBRIDGE_FROM_ADDRESS" , "" ),
0 commit comments