How to use the orchestra.contrib.settings.Setting function in orchestra

To help you get started, we’ve selected a few orchestra examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github glic3rinu / django-orchestra / orchestra / contrib / mailer / settings.py View on Github external
from django.utils.translation import ugettext_lazy as _

from orchestra.contrib.settings import Setting


MAILER_DEFERE_SECONDS = Setting('MAILER_DEFERE_SECONDS',
    (300, 600, 60*60, 60*60*24),
)


MAILER_MESSAGES_CLEANUP_DAYS = Setting('MAILER_MESSAGES_CLEANUP_DAYS',
    7
)


MAILER_NON_QUEUED_PER_REQUEST_THRESHOLD = Setting('MAILER_NON_QUEUED_PER_REQUEST_THRESHOLD',
    2,
    help_text=_("Number of emails that will be sent immediately before starting to queue them."),
)


MAILER_BULK_MESSAGES = Setting('MAILER_BULK_MESSAGES',
    500,
)
github glic3rinu / django-orchestra / orchestra / contrib / systemusers / settings.py View on Github external
SYSTEMUSERS_DISABLED_SHELLS = Setting('SYSTEMUSERS_DISABLED_SHELLS',
    default=(
        '/dev/null',
        '/bin/rssh',
    ),
)


SYSTEMUSERS_HOME = Setting('SYSTEMUSERS_HOME',
    '/home/%(user)s',
    help_text="Available fromat names: <tt>%s</tt>" % ', '.join(_names),
    validators=[Setting.string_format_validator(_names)],
)


SYSTEMUSERS_FTP_LOG_PATH = Setting('SYSTEMUSERS_FTP_LOG_PATH',
    '/var/log/vsftpd.log'
)


SYSTEMUSERS_MAIL_LOG_PATH = Setting('SYSTEMUSERS_MAIL_LOG_PATH',
    '/var/log/exim4/mainlog'
)

SYSTEMUSERS_DEFAULT_GROUP_MEMBERS = Setting('SYSTEMUSERS_DEFAULT_GROUP_MEMBERS',
    ('www-data',)
)


SYSTEMUSERS_MOVE_ON_DELETE_PATH = Setting('SYSTEMUSERS_MOVE_ON_DELETE_PATH',
    '',
    help_text="Available fromat names: <tt>%s</tt>" % ', '.join(_backend_names),
github glic3rinu / django-orchestra / orchestra / contrib / accounts / settings.py View on Github external
)


ACCOUNTS_DEFAULT_LANGUAGE = Setting('ACCOUNTS_DEFAULT_LANGUAGE',
    'EN',
    choices=ACCOUNTS_LANGUAGES
)


ACCOUNTS_SYSTEMUSER_MODEL = Setting('ACCOUNTS_SYSTEMUSER_MODEL',
    'systemusers.SystemUser',
    validators=[Setting.validate_model_label],
)


ACCOUNTS_MAIN_PK = Setting('ACCOUNTS_MAIN_PK',
    1
)


ACCOUNTS_CREATE_RELATED = Setting('ACCOUNTS_CREATE_RELATED',
    (
        # , , , 
        ('mailboxes.Mailbox',
            'name',
            {
                'name': 'account.username',
                'password': 'account.password',
            },
            _("Designates whether to creates a related mailbox with the same name and password or not."),
        ),
        ('domains.Domain',
github glic3rinu / django-orchestra / orchestra / contrib / saas / settings.py View on Github external
)

SAAS_WORDPRESS_ADMIN_PASSWORD = Setting('SAAS_WORDPRESS_ADMIN_PASSWORD',
    'secret'
)

SAAS_WORDPRESS_MAIN_URL = Setting('SAAS_WORDPRESS_MAIN_URL',
    'https://blogs.{}/'.format(ORCHESTRA_BASE_DOMAIN),
    help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default.",
)

SAAS_WORDPRESS_DOMAIN = Setting('SAAS_WORDPRESS_DOMAIN',
    '%(site_name)s.blogs.{}'.format(ORCHESTRA_BASE_DOMAIN),
)

SAAS_WORDPRESS_DB_NAME = Setting('SAAS_WORDPRESS_DB_NAME',
    'wordpressmu',
    help_text=_("Needed for domain mapping when <tt>SAAS_WORDPRESS_ALLOW_CUSTOM_URL</tt> is enabled."),
)

SAAS_WORDPRESS_VERIFY_SSL = Setting('SAAS_WORDPRESS_VERIFY_SSL',
    True,
    help_text=_("Verify SSL certificate on the HTTP requests performed by the backend."),
)


# DokuWiki

SAAS_DOKUWIKI_ALLOW_CUSTOM_URL = Setting('SAAS_DOKUWIKI_ALLOW_CUSTOM_URL',
    True,
    help_text=_("Whether allow custom URL to be specified or not."),
    validators=[validators.validate_website_saas_directives('dokuwiki-saas')],
github glic3rinu / django-orchestra / orchestra / settings.py View on Github external
# Service management commands

ORCHESTRA_START_SERVICES = Setting('ORCHESTRA_START_SERVICES',
    default=(
        'postgresql',
#        'celeryevcam',
#        'celeryd',
#        'celerybeat',
        ('uwsgi', 'nginx'),
    ),
)


ORCHESTRA_RESTART_SERVICES = Setting('ORCHESTRA_RESTART_SERVICES',
    default=(
#        'celeryd',
#        'celerybeat',
        'uwsgi'
    ),
)


ORCHESTRA_STOP_SERVICES = Setting('ORCHESTRA_STOP_SERVICES', 
    default=(
        ('uwsgi', 'nginx'),
#        'celerybeat',
#        'celeryd',
#        'celeryevcam',
        'postgresql'
    ),
github glic3rinu / django-orchestra / orchestra / contrib / saas / settings.py View on Github external
'/home/httpd/bscw/bin/bsadmin',
)


# GitLab

SAAS_GITLAB_ROOT_PASSWORD = Setting('SAAS_GITLAB_ROOT_PASSWORD',
    'secret',
)

SAAS_GITLAB_DOMAIN = Setting('SAAS_GITLAB_DOMAIN',
    'gitlab.{}'.format(ORCHESTRA_BASE_DOMAIN),
    help_text="Uses <tt>ORCHESTRA_BASE_DOMAIN</tt> by default.",
)

SAAS_GITLAB_VERIFY_SSL = Setting('SAAS_GITLAB_VERIFY_SSL',
    True,
)

# Moodle

SAAS_MOODLE_ALLOW_CUSTOM_URL = Setting('SAAS_MOODLE_ALLOW_CUSTOM_URL',
    True,
    help_text=_("Whether allow custom URL to be specified or not."),
    validators=[validators.validate_website_saas_directives('moodle-saas')],
)

SAAS_MOODLE_DB_USER = Setting('SAAS_MOODLE_DB_USER',
    'moodle_mu',
    help_text=_("Needed for password changing support."),
)
github glic3rinu / django-orchestra / orchestra / contrib / orchestration / settings.py View on Github external
validators=[Setting.validate_import_class]
)



ORCHESTRATION_DISABLE_EXECUTION = Setting('ORCHESTRATION_DISABLE_EXECUTION',
    False
)


ORCHESTRATION_BACKEND_CLEANUP_DAYS = Setting('ORCHESTRATION_BACKEND_CLEANUP_DAYS',
    20
)


ORCHESTRATION_SSH_METHOD_BACKEND = Setting('ORCHESTRATION_SSH_METHOD_BACKEND',
    'orchestra.contrib.orchestration.methods.OpenSSH',
    help_text=_("Two methods are provided:<br>"
                "1) <tt>orchestra.contrib.orchestration.methods.OpenSSH</tt> with ControlPersist.<br>"
github glic3rinu / django-orchestra / orchestra / contrib / webapps / settings.py View on Github external
validators=[Setting.string_format_validator(_php_names)],
)


WEBAPPS_FPM_DEFAULT_MAX_CHILDREN = Setting('WEBAPPS_FPM_DEFAULT_MAX_CHILDREN',
    3
)


WEBAPPS_PHPFPM_POOL_PATH = Setting('WEBAPPS_PHPFPM_POOL_PATH',
    '/etc/php%(php_version_number)s/fpm/pool.d/%(user)s-%(app_name)s.conf',
    help_text="Available fromat names: <tt>%s</tt>" % ', '.join(_php_names),
    validators=[Setting.string_format_validator(_php_names)],
)

WEBAPPS_PHPFPM_RELOAD_POOL = Setting('WEBAPPS_PHPFPM_RELOAD_POOL',
    'service php5-fpm reload'
)


WEBAPPS_FCGID_WRAPPER_PATH = Setting('WEBAPPS_FCGID_WRAPPER_PATH',
    '/home/httpd/fcgi-bin.d/%(user)s/%(app_name)s-wrapper',
    validators=[Setting.string_format_validator(_php_names)],
    help_text=("Inside SuExec Document root.<br>"
               "Make sure all account wrappers are in the same DIR.<br>"
               "Available fromat names: <tt>%s</tt>") % ', '.join(_php_names),
)


WEBAPPS_FCGID_CMD_OPTIONS_PATH = Setting('WEBAPPS_FCGID_CMD_OPTIONS_PATH',
    '/etc/apache2/fcgid-conf/%(user)s-%(app_name)s.conf',
    validators=[Setting.string_format_validator(_php_names)],
github glic3rinu / django-orchestra / orchestra / contrib / miscellaneous / settings.py View on Github external
from orchestra.contrib.settings import Setting


MISCELLANEOUS_IDENTIFIER_VALIDATORS = Setting('MISCELLANEOUS_IDENTIFIER_VALIDATORS',
    {
        # : 
github glic3rinu / django-orchestra / orchestra / contrib / letsencrypt / settings.py View on Github external
from orchestra.contrib.settings import Setting


LETSENCRYPT_AUTO_PATH = Setting('LETSENCRYPT_AUTO_PATH',
    '/home/httpd/letsencrypt/letsencrypt-auto'
)


LETSENCRYPT_LIVE_PATH = Setting('LETSENCRYPT_LIVE_PATH',
    '/etc/letsencrypt/live'
)


LETSENCRYPT_EMAIL = Setting('LETSENCRYPT_EMAIL',
    '',
    help_text="Uses account.email by default",
)