2014-05-08 16:59:35 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
|
|
|
2015-02-27 16:57:39 +00:00
|
|
|
WEBSITES_UNIQUE_NAME_FORMAT = getattr(settings, 'WEBSITES_UNIQUE_NAME_FORMAT',
|
2015-03-31 12:39:08 +00:00
|
|
|
'%(user)s-%(site_name)s'
|
|
|
|
)
|
2015-02-27 16:57:39 +00:00
|
|
|
|
|
|
|
|
2015-03-04 21:06:16 +00:00
|
|
|
# TODO 'http', 'https', 'https-only', 'http and https' and rename to PROTOCOL
|
2015-03-10 21:51:10 +00:00
|
|
|
#WEBSITES_PORT_CHOICES = getattr(settings, 'WEBSITES_PORT_CHOICES', (
|
|
|
|
# (80, 'HTTP'),
|
|
|
|
# (443, 'HTTPS'),
|
|
|
|
#))
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
|
2015-03-04 21:06:16 +00:00
|
|
|
WEBSITES_PROTOCOL_CHOICES = getattr(settings, 'WEBSITES_PROTOCOL_CHOICES', (
|
2015-03-10 11:46:48 +00:00
|
|
|
('http', "HTTP"),
|
|
|
|
('https', "HTTPS"),
|
2015-03-10 21:51:10 +00:00
|
|
|
('http/https', _("HTTP and HTTPS")),
|
2015-03-10 11:46:48 +00:00
|
|
|
('https-only', _("HTTPS only")),
|
2015-03-04 21:06:16 +00:00
|
|
|
))
|
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
WEBSITES_DEFAULT_PROTOCOL = getattr(settings, 'WEBSITES_DEFAULT_PROTOCOL',
|
|
|
|
'http'
|
|
|
|
)
|
2015-03-10 21:51:10 +00:00
|
|
|
|
2014-05-08 16:59:35 +00:00
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
WEBSITES_DEFAULT_IP = getattr(settings, 'WEBSITES_DEFAULT_IP',
|
|
|
|
'*'
|
|
|
|
)
|
2014-05-08 16:59:35 +00:00
|
|
|
|
2014-10-17 15:23:02 +00:00
|
|
|
|
2015-03-31 12:39:08 +00:00
|
|
|
WEBSITES_DOMAIN_MODEL = getattr(settings, 'WEBSITES_DOMAIN_MODEL',
|
|
|
|
'domains.Domain'
|
|
|
|
)
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
|
2015-03-10 11:46:48 +00:00
|
|
|
WEBSITES_ENABLED_DIRECTIVES = getattr(settings, 'WEBSITES_ENABLED_DIRECTIVES', (
|
2015-04-05 10:46:24 +00:00
|
|
|
'orchestra.contrib.websites.directives.Redirect',
|
|
|
|
'orchestra.contrib.websites.directives.Proxy',
|
|
|
|
'orchestra.contrib.websites.directives.ErrorDocument',
|
|
|
|
'orchestra.contrib.websites.directives.SSLCA',
|
|
|
|
'orchestra.contrib.websites.directives.SSLCert',
|
|
|
|
'orchestra.contrib.websites.directives.SSLKey',
|
|
|
|
'orchestra.contrib.websites.directives.SecRuleRemove',
|
|
|
|
'orchestra.contrib.websites.directives.SecEngine',
|
|
|
|
'orchestra.contrib.websites.directives.WordPressSaaS',
|
|
|
|
'orchestra.contrib.websites.directives.DokuWikiSaaS',
|
|
|
|
'orchestra.contrib.websites.directives.DrupalSaaS',
|
2015-03-04 21:06:16 +00:00
|
|
|
))
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
|
|
|
|
WEBSITES_BASE_APACHE_CONF = getattr(settings, 'WEBSITES_BASE_APACHE_CONF',
|
2015-03-31 12:39:08 +00:00
|
|
|
'/etc/apache2/'
|
|
|
|
)
|
2014-05-08 16:59:35 +00:00
|
|
|
|
2014-10-17 20:03:41 +00:00
|
|
|
|
2014-05-08 16:59:35 +00:00
|
|
|
WEBSITES_WEBALIZER_PATH = getattr(settings, 'WEBSITES_WEBALIZER_PATH',
|
2015-03-31 12:39:08 +00:00
|
|
|
'/home/httpd/webalizer/'
|
|
|
|
)
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
|
2015-03-02 10:37:25 +00:00
|
|
|
WEBSITES_WEBSITE_WWW_ACCESS_LOG_PATH = getattr(settings, 'WEBSITES_WEBSITE_WWW_ACCESS_LOG_PATH',
|
2015-03-31 12:39:08 +00:00
|
|
|
'/var/log/apache2/virtual/%(unique_name)s.log'
|
|
|
|
)
|
2014-11-20 15:34:59 +00:00
|
|
|
|
|
|
|
|
2015-03-02 10:37:25 +00:00
|
|
|
WEBSITES_WEBSITE_WWW_ERROR_LOG_PATH = getattr(settings, 'WEBSITES_WEBSITE_WWW_ERROR_LOG_PATH',
|
2015-03-31 12:39:08 +00:00
|
|
|
''
|
|
|
|
)
|
2015-03-02 10:37:25 +00:00
|
|
|
|
|
|
|
|
2014-11-20 15:34:59 +00:00
|
|
|
WEBSITES_TRAFFIC_IGNORE_HOSTS = getattr(settings, 'WEBSITES_TRAFFIC_IGNORE_HOSTS',
|
2015-03-31 12:39:08 +00:00
|
|
|
('127.0.0.1',)
|
|
|
|
)
|
2015-03-10 21:51:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
#WEBSITES_DEFAULT_SSl_CA = getattr(settings, 'WEBSITES_DEFAULT_SSl_CA',
|
|
|
|
# '')
|
|
|
|
|
|
|
|
#WEBSITES_DEFAULT_SSl_CERT = getattr(settings, 'WEBSITES_DEFAULT_SSl_CERT',
|
|
|
|
# '')
|
|
|
|
|
|
|
|
#WEBSITES_DEFAULT_SSl_KEY = getattr(settings, 'WEBSITES_DEFAULT_SSl_KEY',
|
|
|
|
# '')
|
2015-03-18 21:51:12 +00:00
|
|
|
|
2015-03-23 15:36:51 +00:00
|
|
|
|
2015-03-25 15:45:04 +00:00
|
|
|
WEBSITES_SAAS_DIRECTIVES = getattr(settings, 'WEBSITES_SAAS_DIRECTIVES', {
|
|
|
|
'wordpress-saas': ('fpm', '/opt/php/5.4/socks/pangea.sock', '/home/httpd/wordpress-mu/'),
|
|
|
|
'drupal-saas': ('fpm', '/opt/php/5.4/socks/pangea.sock','/home/httpd/drupal-mu/'),
|
|
|
|
'dokuwiki-saas': ('fpm', '/opt/php/5.4/socks/pangea.sock','/home/httpd/moodle-mu/'),
|
2015-03-23 15:36:51 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
|
2015-03-25 15:45:04 +00:00
|
|
|
WEBSITES_DEFAULT_SSL_CERT = getattr(settings, 'WEBSITES_DEFAULT_SSL_CERT',
|
|
|
|
''
|
|
|
|
)
|
2015-03-23 15:36:51 +00:00
|
|
|
|
2015-03-25 15:45:04 +00:00
|
|
|
WEBSITES_DEFAULT_SSL_KEY = getattr(settings, 'WEBSITES_DEFAULT_SSL_KEY',
|
|
|
|
''
|
|
|
|
)
|
2015-03-23 15:36:51 +00:00
|
|
|
|
2015-03-25 15:45:04 +00:00
|
|
|
WEBSITES_DEFAULT_SSL_CA = getattr(settings, 'WEBSITES_DEFAULT_SSL_CA',
|
|
|
|
''
|
|
|
|
)
|
2015-03-27 19:50:54 +00:00
|
|
|
|
|
|
|
WEBSITES_VHOST_EXTRA_DIRECTIVES = getattr(settings, 'WEBSITES_VHOST_EXTRA_DIRECTIVES', (
|
|
|
|
# (<location>, <directive>),
|
|
|
|
# ('/cgi-bin/', 'ScriptAlias /cgi-bin/ %(home)s/cgi-bin/'),
|
|
|
|
))
|