244 lines
8.2 KiB
PHP
244 lines
8.2 KiB
PHP
<?php
|
|
|
|
/**
|
|
* This file is part of the Froxlor project.
|
|
* Copyright (c) 2003-2009 the SysCP Team (see authors).
|
|
* Copyright (c) 2010 the Froxlor Team (see authors).
|
|
*
|
|
* For the full copyright and license information, please view the COPYING
|
|
* file that was distributed with this source code. You can also view the
|
|
* COPYING file online at http://files.froxlor.org/misc/COPYING.txt
|
|
*
|
|
* @copyright (c) the authors
|
|
* @author Florian Lippert <flo@syscp.org> (2003-2009)
|
|
* @author Froxlor team <team@froxlor.org> (2010-)
|
|
* @license GPLv2 http://files.froxlor.org/misc/COPYING.txt
|
|
* @package \Froxlor\Settings
|
|
*
|
|
*/
|
|
return array(
|
|
'groups' => array(
|
|
'ssl' => array(
|
|
'title' => $lng['admin']['sslsettings'],
|
|
'fields' => array(
|
|
'system_ssl_enabled' => array(
|
|
'label' => $lng['serversettings']['ssl']['use_ssl'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'use_ssl',
|
|
'type' => 'bool',
|
|
'default' => false,
|
|
'save_method' => 'storeSettingField',
|
|
'overview_option' => true
|
|
),
|
|
'system_ssl_protocols' => array(
|
|
'label' => $lng['serversettings']['ssl']['ssl_protocols'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'ssl_protocols',
|
|
'type' => 'option',
|
|
'default' => 'TLSv1.2',
|
|
'option_mode' => 'multiple',
|
|
'option_options' => array(
|
|
'TLSv1' => 'TLSv1',
|
|
'TLSv1.1' => 'TLSv1.1',
|
|
'TLSv1.2' => 'TLSv1.2',
|
|
'TLSv1.3' => 'TLSv1.3'
|
|
),
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_ssl_cipher_list' => array(
|
|
'label' => $lng['serversettings']['ssl']['ssl_cipher_list'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'ssl_cipher_list',
|
|
'type' => 'string',
|
|
'string_emptyallowed' => false,
|
|
'default' => 'ECDH+AESGCM:ECDH+AES256:!aNULL:!MD5:!DSS:!DH:!AES128',
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_tlsv13_cipher_list' => array(
|
|
'label' => $lng['serversettings']['ssl']['tlsv13_cipher_list'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'tlsv13_cipher_list',
|
|
'type' => 'string',
|
|
'string_emptyallowed' => true,
|
|
'default' => '',
|
|
'visible' => \Froxlor\Settings::Get('system.webserver') == "apache2" && \Froxlor\Settings::Get('system.apache24') == 1,
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_ssl_cert_file' => array(
|
|
'label' => $lng['serversettings']['ssl']['ssl_cert_file'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'ssl_cert_file',
|
|
'type' => 'string',
|
|
'string_type' => 'file',
|
|
'string_emptyallowed' => true,
|
|
'default' => '/etc/apache2/apache2.pem',
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_ssl_key_file' => array(
|
|
'label' => $lng['serversettings']['ssl']['ssl_key_file'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'ssl_key_file',
|
|
'type' => 'string',
|
|
'string_type' => 'file',
|
|
'string_emptyallowed' => true,
|
|
'default' => '/etc/apache2/apache2.key',
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_ssl_cert_chainfile' => array(
|
|
'label' => $lng['admin']['ipsandports']['ssl_cert_chainfile'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'ssl_cert_chainfile',
|
|
'type' => 'string',
|
|
'string_type' => 'file',
|
|
'string_emptyallowed' => true,
|
|
'default' => '',
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_ssl_ca_file' => array(
|
|
'label' => $lng['serversettings']['ssl']['ssl_ca_file'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'ssl_ca_file',
|
|
'type' => 'string',
|
|
'string_type' => 'file',
|
|
'string_emptyallowed' => true,
|
|
'default' => '',
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_apache24_ocsp_cache_path' => array(
|
|
'label' => $lng['serversettings']['ssl']['apache24_ocsp_cache_path'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'apache24_ocsp_cache_path',
|
|
'type' => 'string',
|
|
'string_type' => 'string',
|
|
'string_emptyallowed' => false,
|
|
'default' => 'shmcb:/var/run/apache2/ocsp-stapling.cache(131072)',
|
|
'visible' => \Froxlor\Settings::Get('system.webserver') == "apache2" && \Froxlor\Settings::Get('system.apache24') == 1,
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_sessionticketsenabled' => array(
|
|
'label' => $lng['admin']['domain_sessionticketsenabled'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'sessionticketsenabled',
|
|
'type' => 'bool',
|
|
'default' => true,
|
|
'save_method' => 'storeSettingField',
|
|
'visible' => \Froxlor\Settings::Get('system.use_ssl') && (\Froxlor\Settings::Get('system.webserver') == "nginx" || (\Froxlor\Settings::Get('system.webserver') == "apache2" && \Froxlor\Settings::Get('system.apache24') == 1))
|
|
),
|
|
'system_leenabled' => array(
|
|
'label' => $lng['serversettings']['leenabled'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'leenabled',
|
|
'type' => 'bool',
|
|
'default' => false,
|
|
'cronmodule' => 'froxlor/letsencrypt',
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_acmeshpath' => array(
|
|
'label' => $lng['serversettings']['acmeshpath'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'acmeshpath',
|
|
'type' => 'string',
|
|
'string_type' => 'file',
|
|
'default' => '/root/.acme.sh/acme.sh',
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_letsencryptacmeconf' => array(
|
|
'label' => $lng['serversettings']['letsencryptacmeconf'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'letsencryptacmeconf',
|
|
'type' => 'string',
|
|
'string_type' => 'file',
|
|
'default' => '/etc/apache2/conf-enabled/acme.conf',
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
/**
|
|
* currently the only option anyway
|
|
*
|
|
'system_leapiversion' => array(
|
|
'label' => $lng['serversettings']['leapiversion'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'leapiversion',
|
|
'type' => 'option',
|
|
'default' => '2',
|
|
'option_mode' => 'one',
|
|
'option_options' => array(
|
|
'2' => 'ACME v2'
|
|
),
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
*/
|
|
'system_letsencryptca' => array(
|
|
'label' => $lng['serversettings']['letsencryptca'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'letsencryptca',
|
|
'type' => 'option',
|
|
'default' => 'letsencrypt',
|
|
'option_mode' => 'one',
|
|
'option_options' => array(
|
|
'letsencrypt_test' => 'Let\'s Encrypt (Test / Staging)',
|
|
'letsencrypt' => 'Let\'s Encrypt (Live)',
|
|
'buypass_test' => 'Buypass (Test / Staging)',
|
|
'buypass' => 'Buypass (Live)',
|
|
'zerossl' => 'ZeroSSL (Live)'
|
|
),
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_letsencryptchallengepath' => array(
|
|
'label' => $lng['serversettings']['letsencryptchallengepath'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'letsencryptchallengepath',
|
|
'type' => 'string',
|
|
'string_emptyallowed' => false,
|
|
'default' => \Froxlor\Froxlor::getInstallDir(),
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_letsencryptkeysize' => array(
|
|
'label' => $lng['serversettings']['letsencryptkeysize'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'letsencryptkeysize',
|
|
'type' => 'option',
|
|
'default' => '2048',
|
|
'option_mode' => 'one',
|
|
'option_options' => array(
|
|
'2048' => '2048',
|
|
'3072' => '3072',
|
|
'4096' => '4096',
|
|
'8192' => '8192'
|
|
),
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_leecc' => array(
|
|
'label' => $lng['serversettings']['letsencryptecc'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'leecc',
|
|
'type' => 'option',
|
|
'default' => '0',
|
|
'option_mode' => 'one',
|
|
'option_options' => array(
|
|
'0' => '-',
|
|
'256' => 'ec-256',
|
|
'384' => 'ec-384'
|
|
),
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_letsencryptreuseold' => array(
|
|
'label' => $lng['serversettings']['letsencryptreuseold'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'letsencryptreuseold',
|
|
'type' => 'bool',
|
|
'default' => true,
|
|
'save_method' => 'storeSettingField'
|
|
),
|
|
'system_le_domain_dnscheck' => array(
|
|
'label' => $lng['serversettings']['le_domain_dnscheck'],
|
|
'settinggroup' => 'system',
|
|
'varname' => 'le_domain_dnscheck',
|
|
'type' => 'bool',
|
|
'default' => true,
|
|
'save_method' => 'storeSettingField'
|
|
)
|
|
)
|
|
)
|
|
)
|
|
);
|