| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/opt/alt/python37/lib/python3.7/site-packages/clcommon/ |
Upload File : |
# -*- coding: utf-8 -*-
# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2018 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
class Feature:
"""
Enum of available CloudLinux features
that vendors can disable or enable
"""
PHP_SELECTOR = 'php_selector'
RUBY_SELECTOR = 'ruby_selector'
PYTHON_SELECTOR = 'python_selector'
NODEJS_SELECTOR = 'nodejs_selector'
LSAPI = 'mod_lsapi'
GOVERNOR = 'mysql_governor'
LVE = 'lve'
WIZARD = 'wizard'
CAGEFS = 'cagefs'
RESELLER_LIMITS = 'reseller_limits'
XRAY = 'xray'
WPOS = 'wpos'
ALL_CL_FEATURES = {
Feature.PHP_SELECTOR: True,
Feature.RUBY_SELECTOR: True,
Feature.PYTHON_SELECTOR: True,
Feature.NODEJS_SELECTOR: True,
Feature.LSAPI: True,
Feature.GOVERNOR: True,
Feature.CAGEFS: True,
Feature.LVE: True,
Feature.RESELLER_LIMITS: True,
Feature.XRAY: True,
Feature.WPOS: True,
Feature.WIZARD: True,
}
UBUNTU_CL_FEATURES = {
Feature.PHP_SELECTOR: True,
Feature.RUBY_SELECTOR: False,
Feature.PYTHON_SELECTOR: False,
Feature.NODEJS_SELECTOR: False,
Feature.LSAPI: False,
Feature.GOVERNOR: True,
Feature.CAGEFS: True,
Feature.LVE: True,
Feature.RESELLER_LIMITS: True,
Feature.XRAY: True,
Feature.WPOS: False,
}
SOLO_CL_FEATURES = {
**ALL_CL_FEATURES,
# we are not supporting following features
Feature.RUBY_SELECTOR: False,
Feature.PYTHON_SELECTOR: False,
Feature.NODEJS_SELECTOR: False,
Feature.LSAPI: False,
Feature.GOVERNOR: False,
Feature.LVE: False,
Feature.RESELLER_LIMITS: False,
}
ADMIN_CL_FEATURES = {
**ALL_CL_FEATURES,
# we are not supporting following features
Feature.RESELLER_LIMITS: False,
Feature.GOVERNOR: False,
}
CONTAINER_CL_FEATURES = {
**ALL_CL_FEATURES,
# we are not supporting following features
Feature.RESELLER_LIMITS: False,
Feature.GOVERNOR: False,
Feature.LVE: False,
Feature.RUBY_SELECTOR: False,
}