2014-05-08 16:59:35 +00:00
|
|
|
from django.conf import settings
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
|
|
|
|
|
2015-03-11 16:32:33 +00:00
|
|
|
WEBAPPS_BASE_ROOT = getattr(settings, 'WEBAPPS_BASE_ROOT',
|
|
|
|
'%(home)s/webapps/%(app_name)s/')
|
|
|
|
|
2014-05-08 16:59:35 +00:00
|
|
|
|
2015-03-10 11:46:48 +00:00
|
|
|
WEBAPPS_FPM_LISTEN = getattr(settings, 'WEBAPPS_FPM_LISTEN',
|
2015-03-10 16:57:23 +00:00
|
|
|
# '127.0.0.1:9%(app_id)03d
|
|
|
|
'/opt/php/5.4/socks/%(user)s-%(app_name)s.sock'
|
2015-03-10 11:46:48 +00:00
|
|
|
)
|
2014-10-14 13:50:19 +00:00
|
|
|
|
|
|
|
WEBAPPS_PHPFPM_POOL_PATH = getattr(settings, 'WEBAPPS_PHPFPM_POOL_PATH',
|
2015-03-10 16:57:23 +00:00
|
|
|
'/etc/php5/fpm/pool.d/%(user)s-%(app_name)s.conf')
|
2014-10-14 13:50:19 +00:00
|
|
|
|
|
|
|
|
2015-03-11 16:32:33 +00:00
|
|
|
WEBAPPS_FCGID_WRAPPER_PATH = getattr(settings, 'WEBAPPS_FCGID_WRAPPER_PATH',
|
2015-03-10 16:57:23 +00:00
|
|
|
'/home/httpd/fcgi-bin.d/%(user)s/%(app_name)s-wrapper')
|
2014-05-08 16:59:35 +00:00
|
|
|
|
|
|
|
|
2015-03-10 16:57:23 +00:00
|
|
|
WEBAPPS_FCGID_CMD_OPTIONS_PATH = getattr(settings, 'WEBAPPS_FCGID_CMD_OPTIONS_PATH',
|
2015-03-11 16:32:33 +00:00
|
|
|
# Loaded by Apache
|
2015-03-10 16:57:23 +00:00
|
|
|
'/etc/apache2/fcgid-conf/%(user)s-%(app_name)s.conf')
|
|
|
|
|
|
|
|
|
|
|
|
WEBAPPS_PHP_ERROR_LOG_PATH = getattr(settings, 'WEBAPPS_PHP_ERROR_LOG_PATH',
|
|
|
|
'')
|
|
|
|
|
2015-03-04 21:06:16 +00:00
|
|
|
WEBAPPS_TYPES = getattr(settings, 'WEBAPPS_TYPES', (
|
2015-03-11 16:32:33 +00:00
|
|
|
'orchestra.apps.webapps.types.php.PHPFPMApp',
|
|
|
|
'orchestra.apps.webapps.types.php.PHPFCGIDApp',
|
|
|
|
'orchestra.apps.webapps.types.misc.StaticApp',
|
|
|
|
'orchestra.apps.webapps.types.misc.WebalizerApp',
|
|
|
|
'orchestra.apps.webapps.types.saas.WordPressMuApp',
|
|
|
|
'orchestra.apps.webapps.types.saas.DokuWikiMuApp',
|
|
|
|
'orchestra.apps.webapps.types.saas.DrupalMuApp',
|
|
|
|
'orchestra.apps.webapps.types.misc.SymbolicLinkApp',
|
|
|
|
'orchestra.apps.webapps.types.wordpress.WordPressFPMApp',
|
|
|
|
'orchestra.apps.webapps.types.wordpress.WordPressFCGIDApp',
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WEBAPPS_PHP_FCGID_VERSIONS = getattr(settings, 'WEBAPPS_PHP_FCGID_VERSIONS', (
|
|
|
|
('5.4', '5.4'),
|
|
|
|
('5.3', '5.3'),
|
|
|
|
('5.2', '5.2'),
|
|
|
|
('4', '4'),
|
2015-03-04 21:06:16 +00:00
|
|
|
))
|
|
|
|
|
2015-03-11 16:32:33 +00:00
|
|
|
|
|
|
|
WEBAPPS_PHP_FCGID_DEFAULT_VERSION = getattr(settings, 'WEBAPPS_PHP_FCGID_DEFAULT_VERSION',
|
|
|
|
'5.4')
|
|
|
|
|
|
|
|
|
|
|
|
WEBAPPS_PHP_CGI_BINARY_PATH = getattr(settings, 'WEBAPPS_PHP_CGI_BINARY_PATH',
|
|
|
|
# Path of the cgi binary used by fcgid
|
|
|
|
'/usr/bin/php%(php_version)s-cgi')
|
|
|
|
|
|
|
|
WEBAPPS_PHP_CGI_RC_PATH = getattr(settings, 'WEBAPPS_PHP_CGI_RC_PATH',
|
|
|
|
# Path to php.ini
|
|
|
|
'/etc/php%(php_version)s/cgi/')
|
|
|
|
|
|
|
|
|
|
|
|
WEBAPPS_PHP_FPM_VERSIONS = getattr(settings, 'WEBAPPS_PHP_FPM_VERSIONS', (
|
|
|
|
('5.4', '5.4'),
|
|
|
|
))
|
|
|
|
|
|
|
|
|
|
|
|
WEBAPPS_PHP_FPM_DEFAULT_VERSION = getattr(settings, 'WEBAPPS_PHP_DEFAULT_VERSION',
|
|
|
|
'5.4')
|
|
|
|
|
|
|
|
|
2015-03-10 16:57:23 +00:00
|
|
|
WEBAPPS_UNDER_CONSTRUCTION_PATH = getattr(settings, 'WEBAPPS_UNDER_CONSTRUCTION_PATH',
|
|
|
|
# Server-side path where a under construction stock page is
|
|
|
|
# '/var/www/undercontruction/index.html',
|
|
|
|
'')
|
2015-03-10 11:46:48 +00:00
|
|
|
|
2015-03-04 21:06:16 +00:00
|
|
|
#WEBAPPS_TYPES_OVERRIDE = getattr(settings, 'WEBAPPS_TYPES_OVERRIDE', {})
|
|
|
|
#for webapp_type, value in WEBAPPS_TYPES_OVERRIDE.iteritems():
|
|
|
|
# if value is None:
|
|
|
|
# WEBAPPS_TYPES.pop(webapp_type, None)
|
|
|
|
# else:
|
|
|
|
# WEBAPPS_TYPES[webapp_type] = value
|
2014-10-30 16:34:02 +00:00
|
|
|
|
|
|
|
|
2014-11-10 15:03:34 +00:00
|
|
|
WEBAPPS_PHP_DISABLED_FUNCTIONS = getattr(settings, 'WEBAPPS_PHP_DISABLED_FUNCTION', [
|
|
|
|
'exec',
|
|
|
|
'passthru',
|
|
|
|
'shell_exec',
|
|
|
|
'system',
|
|
|
|
'proc_open',
|
|
|
|
'popen',
|
|
|
|
'curl_exec',
|
|
|
|
'curl_multi_exec',
|
|
|
|
'show_source',
|
|
|
|
'pcntl_exec',
|
|
|
|
'proc_close',
|
|
|
|
'proc_get_status',
|
|
|
|
'proc_nice',
|
|
|
|
'proc_terminate',
|
|
|
|
'ini_alter',
|
|
|
|
'virtual',
|
|
|
|
'openlog',
|
|
|
|
'escapeshellcmd',
|
|
|
|
'escapeshellarg',
|
|
|
|
'dl'
|
|
|
|
])
|
|
|
|
|
|
|
|
|
2015-03-04 21:06:16 +00:00
|
|
|
WEBAPPS_ENABLED_OPTIONS = getattr(settings, 'WEBAPPS_ENABLED_OPTIONS', (
|
2015-03-10 11:46:48 +00:00
|
|
|
'orchestra.apps.webapps.options.PublicRoot',
|
|
|
|
'orchestra.apps.webapps.options.Timeout',
|
|
|
|
'orchestra.apps.webapps.options.Processes',
|
|
|
|
'orchestra.apps.webapps.options.PHPEnabledFunctions',
|
|
|
|
'orchestra.apps.webapps.options.PHPAllowURLInclude',
|
|
|
|
'orchestra.apps.webapps.options.PHPAllowURLFopen',
|
|
|
|
'orchestra.apps.webapps.options.PHPAutoAppendFile',
|
|
|
|
'orchestra.apps.webapps.options.PHPAutoPrependFile',
|
|
|
|
'orchestra.apps.webapps.options.PHPDateTimeZone',
|
|
|
|
'orchestra.apps.webapps.options.PHPDefaultSocketTimeout',
|
|
|
|
'orchestra.apps.webapps.options.PHPDisplayErrors',
|
|
|
|
'orchestra.apps.webapps.options.PHPExtension',
|
|
|
|
'orchestra.apps.webapps.options.PHPMagicQuotesGPC',
|
|
|
|
'orchestra.apps.webapps.options.PHPMagicQuotesRuntime',
|
|
|
|
'orchestra.apps.webapps.options.PHPMaginQuotesSybase',
|
|
|
|
'orchestra.apps.webapps.options.PHPMaxExecutonTime',
|
|
|
|
'orchestra.apps.webapps.options.PHPMaxInputTime',
|
|
|
|
'orchestra.apps.webapps.options.PHPMaxInputVars',
|
|
|
|
'orchestra.apps.webapps.options.PHPMemoryLimit',
|
|
|
|
'orchestra.apps.webapps.options.PHPMySQLConnectTimeout',
|
|
|
|
'orchestra.apps.webapps.options.PHPOutputBuffering',
|
|
|
|
'orchestra.apps.webapps.options.PHPRegisterGlobals',
|
|
|
|
'orchestra.apps.webapps.options.PHPPostMaxSize',
|
|
|
|
'orchestra.apps.webapps.options.PHPSendmailPath',
|
|
|
|
'orchestra.apps.webapps.options.PHPSessionBugCompatWarn',
|
|
|
|
'orchestra.apps.webapps.options.PHPSessionAutoStart',
|
|
|
|
'orchestra.apps.webapps.options.PHPSafeMode',
|
|
|
|
'orchestra.apps.webapps.options.PHPSuhosinPostMaxVars',
|
|
|
|
'orchestra.apps.webapps.options.PHPSuhosinGetMaxVars',
|
|
|
|
'orchestra.apps.webapps.options.PHPSuhosinRequestMaxVars',
|
|
|
|
'orchestra.apps.webapps.options.PHPSuhosinSessionEncrypt',
|
|
|
|
'orchestra.apps.webapps.options.PHPSuhosinSimulation',
|
|
|
|
'orchestra.apps.webapps.options.PHPSuhosinExecutorIncludeWhitelist',
|
|
|
|
'orchestra.apps.webapps.options.PHPUploadMaxFileSize',
|
|
|
|
'orchestra.apps.webapps.options.PHPPostMaxSize',
|
2015-03-04 21:06:16 +00:00
|
|
|
))
|
2014-11-27 19:17:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
WEBAPPS_WORDPRESSMU_ADMIN_PASSWORD = getattr(settings, 'WEBAPPS_WORDPRESSMU_ADMIN_PASSWORD',
|
|
|
|
'secret')
|
|
|
|
|
2015-03-10 11:46:48 +00:00
|
|
|
WEBAPPS_WORDPRESSMU_BASE_URL = getattr(settings, 'WEBAPPS_WORDPRESSMU_BASE_URL',
|
2014-11-27 19:17:26 +00:00
|
|
|
'http://blogs.orchestra.lan/')
|
|
|
|
|
2015-03-10 11:46:48 +00:00
|
|
|
WEBAPPS_WORDPRESSMU_LISTEN = getattr(settings, 'WEBAPPS_WORDPRESSMU_LISTEN',
|
|
|
|
'/opt/php/5.4/socks/wordpress-mu.sock'
|
|
|
|
)
|
|
|
|
|
2014-11-27 19:17:26 +00:00
|
|
|
|
|
|
|
WEBAPPS_DOKUWIKIMU_TEMPLATE_PATH = getattr(settings, 'WEBAPPS_DOKUWIKIMU_TEMPLATE_PATH',
|
|
|
|
'/home/httpd/htdocs/wikifarm/template.tar.gz')
|
|
|
|
|
|
|
|
WEBAPPS_DOKUWIKIMU_FARM_PATH = getattr(settings, 'WEBAPPS_DOKUWIKIMU_FARM_PATH',
|
|
|
|
'/home/httpd/htdocs/wikifarm/farm')
|
|
|
|
|
2015-03-10 11:46:48 +00:00
|
|
|
WEBAPPS_DOKUWIKIMU_LISTEN = getattr(settings, 'WEBAPPS_DOKUWIKIMU_LISTEN',
|
|
|
|
'/opt/php/5.4/socks/dokuwiki-mu.sock'
|
|
|
|
)
|
2014-11-27 19:17:26 +00:00
|
|
|
|
2015-03-10 11:46:48 +00:00
|
|
|
|
|
|
|
WEBAPPS_DRUPALMU_SITES_PATH = getattr(settings, 'WEBAPPS_DRUPALMU_SITES_PATH',
|
2015-03-10 16:57:23 +00:00
|
|
|
'/home/httpd/htdocs/drupal-mu/sites/%(site_name)s')
|
2015-03-10 11:46:48 +00:00
|
|
|
|
|
|
|
WEBAPPS_DRUPALMU_LISTEN = getattr(settings, 'WEBAPPS_DRUPALMU_LISTEN',
|
|
|
|
'/opt/php/5.4/socks/drupal-mu.sock'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
WEBAPPS_MOODLEMU_LISTEN = getattr(settings, 'WEBAPPS_MOODLEMU_LISTEN',
|
|
|
|
'/opt/php/5.4/socks/moodle-mu.sock'
|
|
|
|
)
|
2015-03-04 21:06:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
WEBAPPS_DEFAULT_MYSQL_DATABASE_HOST = getattr(settings, 'WEBAPPS_DEFAULT_MYSQL_DATABASE_HOST',
|
|
|
|
'mysql.orchestra.lan')
|