2015-07-20 00:09:47 -07:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
// default admin installation location. keep in sync with ADMIN_LOCATION in setup/start.sh and BOX_ADMIN_LOCATION in appstore constants.js
|
|
|
|
|
exports = module.exports = {
|
|
|
|
|
ADMIN_LOCATION: 'my',
|
|
|
|
|
API_LOCATION: 'api', // this is unused but reserved for future use (#403)
|
2016-05-04 15:35:59 -07:00
|
|
|
SMTP_LOCATION: 'smtp',
|
|
|
|
|
IMAP_LOCATION: 'imap',
|
2016-05-11 09:53:57 -07:00
|
|
|
MAIL_LOCATION: 'my', // not a typo! should be same as admin location until we figure out certificates
|
2016-05-11 15:04:22 -07:00
|
|
|
POSTMAN_LOCATION: 'postman', // used in dovecot bounces
|
2016-05-04 15:35:59 -07:00
|
|
|
|
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
|
2016-09-27 16:36:57 -07:00
|
|
|
'admin', 'no-reply', 'postmaster', 'mailer-daemon', // apps like wordpress, gogs don't like these
|
2016-09-26 22:17:35 -07:00
|
|
|
|
|
|
|
|
// Reserved groups
|
|
|
|
|
'admins', 'users' // ldap code uses 'users' pseudo group
|
|
|
|
|
],
|
|
|
|
|
|
2015-07-20 00:09:47 -07:00
|
|
|
ADMIN_NAME: 'Settings',
|
|
|
|
|
|
|
|
|
|
ADMIN_CLIENT_ID: 'webadmin', // oauth client id
|
2016-02-14 12:13:49 +01:00
|
|
|
ADMIN_APPID: 'admin', // admin appid (settingsdb)
|
|
|
|
|
|
2016-09-20 15:07:11 -07:00
|
|
|
ADMIN_GROUP_ID: 'admin',
|
|
|
|
|
|
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-08-31 23:41:28 -07:00
|
|
|
DEMO_USERNAME: 'cloudron'
|
2015-07-20 00:09:47 -07:00
|
|
|
};
|
|
|
|
|
|