django-orchestra-test/orchestra/contrib/saas/settings.py

90 lines
2.2 KiB
Python
Raw Normal View History

2015-04-26 13:53:00 +00:00
from orchestra.settings import ORCHESTRA_BASE_DOMAIN, Setting
from .. import saas
SAAS_ENABLED_SERVICES = Setting('SAAS_ENABLED_SERVICES', (
'orchestra.contrib.saas.services.moodle.MoodleService',
'orchestra.contrib.saas.services.bscw.BSCWService',
'orchestra.contrib.saas.services.gitlab.GitLabService',
'orchestra.contrib.saas.services.phplist.PHPListService',
'orchestra.contrib.saas.services.wordpress.WordPressService',
'orchestra.contrib.saas.services.dokuwiki.DokuWikiService',
'orchestra.contrib.saas.services.drupal.DrupalService',
'orchestra.contrib.saas.services.seafile.SeaFileService',
),
# lazy loading
choices=lambda : ((s.get_class_path(), s.get_class_path()) for s in saas.services.SoftwareService.get_plugins()),
multiple=True,
)
2015-03-23 15:36:51 +00:00
2015-04-26 13:53:00 +00:00
SAAS_WORDPRESS_ADMIN_PASSWORD = Setting('SAAS_WORDPRESSMU_ADMIN_PASSWORD',
2015-03-23 15:36:51 +00:00
'secret'
)
2015-04-26 13:53:00 +00:00
SAAS_WORDPRESS_BASE_URL = Setting('SAAS_WORDPRESS_BASE_URL',
'http://blogs.{}/'.format(ORCHESTRA_BASE_DOMAIN)
2015-03-23 15:36:51 +00:00
)
2015-04-26 13:53:00 +00:00
SAAS_DOKUWIKI_TEMPLATE_PATH = Setting('SAAS_DOKUWIKI_TEMPLATE_PATH',
'/home/httpd/htdocs/wikifarm/template.tar.gz'
)
2015-03-23 15:36:51 +00:00
2015-04-26 13:53:00 +00:00
SAAS_DOKUWIKI_FARM_PATH = Setting('WEBSITES_DOKUWIKI_FARM_PATH',
2015-03-23 15:36:51 +00:00
'/home/httpd/htdocs/wikifarm/farm'
)
2015-04-26 13:53:00 +00:00
SAAS_DRUPAL_SITES_PATH = Setting('WEBSITES_DRUPAL_SITES_PATH',
2015-03-23 15:36:51 +00:00
'/home/httpd/htdocs/drupal-mu/sites/%(site_name)s'
)
2015-04-26 13:53:00 +00:00
SAAS_PHPLIST_DB_NAME = Setting('SAAS_PHPLIST_DB_NAME',
2015-03-23 15:36:51 +00:00
'phplist_mu'
)
2015-04-26 13:53:00 +00:00
SAAS_PHPLIST_BASE_DOMAIN = Setting('SAAS_PHPLIST_BASE_DOMAIN',
'lists.{}'.format(ORCHESTRA_BASE_DOMAIN)
2015-03-23 15:36:51 +00:00
)
2015-04-26 13:53:00 +00:00
SAAS_SEAFILE_DOMAIN = Setting('SAAS_SEAFILE_DOMAIN',
'seafile.{}'.format(ORCHESTRA_BASE_DOMAIN)
)
2015-04-26 13:53:00 +00:00
SAAS_SEAFILE_DEFAULT_QUOTA = Setting('SAAS_SEAFILE_DEFAULT_QUOTA',
50
)
2015-04-26 13:53:00 +00:00
SAAS_BSCW_DOMAIN = Setting('SAAS_BSCW_DOMAIN',
'bscw.{}'.format(ORCHESTRA_BASE_DOMAIN)
2015-03-23 15:36:51 +00:00
)
2015-04-26 13:53:00 +00:00
SAAS_BSCW_DEFAULT_QUOTA = Setting('SAAS_BSCW_DEFAULT_QUOTA',
50
)
2015-04-26 13:53:00 +00:00
SAAS_BSCW_BSADMIN_PATH = Setting('SAAS_BSCW_BSADMIN_PATH',
'/home/httpd/bscw/bin/bsadmin',
)
2015-04-26 13:53:00 +00:00
SAAS_GITLAB_ROOT_PASSWORD = Setting('SAAS_GITLAB_ROOT_PASSWORD',
'secret'
)
2015-04-26 13:53:00 +00:00
SAAS_GITLAB_DOMAIN = Setting('SAAS_GITLAB_DOMAIN',
'gitlab.{}'.format(ORCHESTRA_BASE_DOMAIN)
)