2015-05-04 19:52:53 +00:00
|
|
|
from orchestra.contrib.settings import Setting
|
|
|
|
from orchestra.settings import ORCHESTRA_BASE_DOMAIN
|
2015-04-26 13:53:00 +00:00
|
|
|
|
|
|
|
from .. import saas
|
|
|
|
|
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
SAAS_ENABLED_SERVICES = Setting('SAAS_ENABLED_SERVICES',
|
|
|
|
(
|
2015-04-26 13:53:00 +00:00
|
|
|
'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
|
2015-04-26 15:52:40 +00:00
|
|
|
choices=lambda: ((s.get_class_path(), s.get_class_path()) for s in saas.services.SoftwareService.get_plugins()),
|
2015-04-26 13:53:00 +00:00
|
|
|
multiple=True,
|
|
|
|
)
|
2015-03-23 15:36:51 +00:00
|
|
|
|
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
SAAS_WORDPRESS_ADMIN_PASSWORD = Setting('SAAS_WORDPRESSMU_ADMIN_PASSWORD',
|
|
|
|
'secret'
|
|
|
|
)
|
2015-03-23 15:36:51 +00:00
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_WORDPRESS_BASE_URL = Setting('SAAS_WORDPRESS_BASE_URL',
|
2015-04-27 14:54:17 +00:00
|
|
|
'https://blogs.{}/'.format(ORCHESTRA_BASE_DOMAIN),
|
|
|
|
help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default.",
|
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',
|
2015-03-31 12:39:08 +00:00
|
|
|
'/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-03-31 12:39:08 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_DRUPAL_SITES_PATH = Setting('WEBSITES_DRUPAL_SITES_PATH',
|
2015-04-27 14:54:17 +00:00
|
|
|
'/home/httpd/htdocs/drupal-mu/sites/%(site_name)s',
|
|
|
|
|
2015-03-23 15:36:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_PHPLIST_DB_NAME = Setting('SAAS_PHPLIST_DB_NAME',
|
2015-04-27 14:54:17 +00:00
|
|
|
'phplist_mu',
|
2015-03-23 15:36:51 +00:00
|
|
|
)
|
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_PHPLIST_BASE_DOMAIN = Setting('SAAS_PHPLIST_BASE_DOMAIN',
|
2015-04-27 14:54:17 +00:00
|
|
|
'lists.{}'.format(ORCHESTRA_BASE_DOMAIN),
|
|
|
|
help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default.",
|
2015-03-23 15:36:51 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_SEAFILE_DOMAIN = Setting('SAAS_SEAFILE_DOMAIN',
|
2015-04-27 14:54:17 +00:00
|
|
|
'seafile.{}'.format(ORCHESTRA_BASE_DOMAIN),
|
|
|
|
help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default.",
|
2015-03-26 16:00:30 +00:00
|
|
|
)
|
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_SEAFILE_DEFAULT_QUOTA = Setting('SAAS_SEAFILE_DEFAULT_QUOTA',
|
2015-03-26 16:00:30 +00:00
|
|
|
50
|
|
|
|
)
|
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_BSCW_DOMAIN = Setting('SAAS_BSCW_DOMAIN',
|
2015-04-27 14:54:17 +00:00
|
|
|
'bscw.{}'.format(ORCHESTRA_BASE_DOMAIN),
|
|
|
|
help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default.",
|
2015-03-23 15:36:51 +00:00
|
|
|
)
|
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_BSCW_DEFAULT_QUOTA = Setting('SAAS_BSCW_DEFAULT_QUOTA',
|
2015-04-27 14:54:17 +00:00
|
|
|
50,
|
2015-03-25 15:45:04 +00:00
|
|
|
)
|
|
|
|
|
2015-04-27 14:54:17 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_BSCW_BSADMIN_PATH = Setting('SAAS_BSCW_BSADMIN_PATH',
|
2015-03-31 12:39:08 +00:00
|
|
|
'/home/httpd/bscw/bin/bsadmin',
|
|
|
|
)
|
2015-03-25 15:45:04 +00:00
|
|
|
|
2015-03-26 16:00:30 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_GITLAB_ROOT_PASSWORD = Setting('SAAS_GITLAB_ROOT_PASSWORD',
|
2015-04-27 14:54:17 +00:00
|
|
|
'secret',
|
2015-03-25 15:45:04 +00:00
|
|
|
)
|
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
|
2015-04-26 13:53:00 +00:00
|
|
|
SAAS_GITLAB_DOMAIN = Setting('SAAS_GITLAB_DOMAIN',
|
2015-04-27 14:54:17 +00:00
|
|
|
'gitlab.{}'.format(ORCHESTRA_BASE_DOMAIN),
|
|
|
|
help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default.",
|
2015-03-25 15:45:04 +00:00
|
|
|
)
|