2014-05-08 16:59:35 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
|
|
|
|
|
|
# Domain name used when it will not be possible to infere the domain from a request
|
|
|
|
# For example in periodic tasks
|
2015-04-05 22:34:47 +00:00
|
|
|
ORCHESTRA_SITE_URL = getattr(settings, 'ORCHESTRA_SITE_URL',
|
2015-03-31 12:39:08 +00:00
|
|
|
'http://localhost'
|
|
|
|
)
|
|
|
|
|
2015-04-05 22:34:47 +00:00
|
|
|
ORCHESTRA_SITE_NAME = getattr(settings, 'ORCHESTRA_SITE_NAME',
|
2015-03-31 12:39:08 +00:00
|
|
|
'orchestra'
|
|
|
|
)
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
|
2015-04-05 22:34:47 +00:00
|
|
|
ORCHESTRA_SITE_VERBOSE_NAME = getattr(settings, 'ORCHESTRA_SITE_VERBOSE_NAME',
|
|
|
|
_("%s Hosting Management" % ORCHESTRA_SITE_NAME.capitalize())
|
2015-03-31 12:39:08 +00:00
|
|
|
)
|
|
|
|
|
2014-05-08 16:59:35 +00:00
|
|
|
|
2015-04-05 22:34:47 +00:00
|
|
|
ORCHESTRA_BASE_DOMAIN = getattr(settings, 'ORCHESTRA_BASE_DOMAIN',
|
2015-03-31 12:39:08 +00:00
|
|
|
'orchestra.lan'
|
|
|
|
)
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
# Service management commands
|
|
|
|
|
2015-04-05 22:34:47 +00:00
|
|
|
ORCHESTRA_START_SERVICES = getattr(settings, 'ORCHESTRA_START_SERVICES', [
|
2015-03-31 12:39:08 +00:00
|
|
|
'postgresql',
|
|
|
|
'celeryevcam',
|
|
|
|
'celeryd',
|
|
|
|
'celerybeat',
|
|
|
|
('uwsgi', 'nginx'),
|
|
|
|
])
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
|
2015-04-05 22:34:47 +00:00
|
|
|
ORCHESTRA_RESTART_SERVICES = getattr(settings, 'ORCHESTRA_RESTART_SERVICES', [
|
2015-03-31 12:39:08 +00:00
|
|
|
'celeryd',
|
|
|
|
'celerybeat',
|
|
|
|
'uwsgi'
|
|
|
|
])
|
2014-05-08 16:59:35 +00:00
|
|
|
|
2015-04-05 22:34:47 +00:00
|
|
|
ORCHESTRA_STOP_SERVICES = getattr(settings, 'ORCHESTRA_STOP_SERVICES', [
|
2015-03-31 12:39:08 +00:00
|
|
|
('uwsgi', 'nginx'),
|
|
|
|
'celerybeat',
|
|
|
|
'celeryd',
|
|
|
|
'celeryevcam',
|
|
|
|
'postgresql'
|
|
|
|
])
|
2014-05-13 13:46:40 +00:00
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
|
2015-04-05 22:34:47 +00:00
|
|
|
ORCHESTRA_API_ROOT_VIEW = getattr(settings, 'ORCHESTRA_API_ROOT_VIEW',
|
2015-03-31 12:39:08 +00:00
|
|
|
'orchestra.api.root.APIRoot'
|
|
|
|
)
|
2014-10-24 10:16:46 +00:00
|
|
|
|
|
|
|
|
2014-11-24 14:39:41 +00:00
|
|
|
ORCHESTRA_DEFAULT_SUPPORT_FROM_EMAIL = getattr(settings, 'ORCHESTRA_DEFAULT_SUPPORT_FROM_EMAIL',
|
2015-04-05 22:34:47 +00:00
|
|
|
'support@{}'.format(ORCHESTRA_BASE_DOMAIN)
|
2014-11-24 14:39:41 +00:00
|
|
|
)
|