2015-07-20 00:09:47 -07:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
exports = module.exports = {
|
2016-05-04 15:35:59 -07:00
|
|
|
SMTP_LOCATION: 'smtp',
|
|
|
|
|
IMAP_LOCATION: 'imap',
|
|
|
|
|
|
2016-09-26 22:17:35 -07:00
|
|
|
// These are combined into one array because users and groups become mailboxes
|
|
|
|
|
RESERVED_NAMES: [
|
|
|
|
|
// Reserved usernames
|
|
|
|
|
// https://github.com/gogits/gogs/blob/52c8f691630548fe091d30bcfe8164545a05d3d5/models/repo.go#L393
|
2018-01-19 22:10:10 -08:00
|
|
|
// apps like wordpress, gogs don't like these
|
|
|
|
|
// postmaster is used in dovecot and haraka
|
|
|
|
|
'admin', 'no-reply', 'postmaster', 'mailer-daemon',
|
2016-09-26 22:17:35 -07:00
|
|
|
|
|
|
|
|
// Reserved groups
|
|
|
|
|
'admins', 'users' // ldap code uses 'users' pseudo group
|
|
|
|
|
],
|
|
|
|
|
|
2018-12-13 21:42:47 -08:00
|
|
|
ADMIN_LOCATION: 'my',
|
2015-07-20 00:09:47 -07:00
|
|
|
|
2018-11-10 22:02:42 -08:00
|
|
|
NGINX_DEFAULT_CONFIG_FILE_NAME: 'default.conf',
|
2017-01-06 14:19:38 +01:00
|
|
|
|
2016-07-12 11:37:44 -07:00
|
|
|
GHOST_USER_FILE: '/tmp/cloudron_ghost.json',
|
2016-07-12 10:07:55 -07:00
|
|
|
|
2016-08-01 10:14:45 +02:00
|
|
|
DEFAULT_TOKEN_EXPIRATION: 7 * 24 * 60 * 60 * 1000, // 1 week
|
|
|
|
|
|
2016-08-31 21:00:05 -07:00
|
|
|
DEFAULT_MEMORY_LIMIT: (256 * 1024 * 1024), // see also client.js
|
|
|
|
|
|
2016-12-14 14:54:17 +01:00
|
|
|
DEMO_USERNAME: 'cloudron',
|
|
|
|
|
|
2019-02-15 10:55:15 -08:00
|
|
|
AUTOUPDATE_PATTERN_NEVER: 'never',
|
|
|
|
|
|
|
|
|
|
SECRET_PLACEHOLDER: String.fromCharCode(0x25CF).repeat(8)
|
2015-07-20 00:09:47 -07:00
|
|
|
};
|
|
|
|
|
|