mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-11-05 10:46:10 +08:00
Set the PHP server config per site (#232)
* Set up the php server per site. * Backwards compatibility logic for old config URLs. * Remove php global config tab. * Fix util import in website.conf.js * Fix eslint fails. * Move global php i18n keys to domain * Remove unnecessary domains verification and set fastcgi_pass in unified mode. * Convert return statement to logic operator in php_ustream.js * Move php upstream to outside the server blocks * Remove unnecessary watcher from php domain section * Fix upstream config context and conditional append * Separate backwards compatibility logic. * Remove unused i18n key from php domain and update copyright of these files * Replace all dots for underscore in php_upstream helper * Fix missing space and remove upstream comment from php config. * Fix selects $refs and watch the enable status for phpServer and phpBackupServer. * Change copyright year for all modified files. * Backwards compatibility logic for old config URLs after angularBackwardsCompatibility * Deep merge old php global config from data url, and add safe disable for phpConfigs * Move deep merge function to new helper * Fix missing disable wordpressRules and convert function declaration to arrows in deep merge helper * Fix missing css class in php domain-section
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2020 DigitalOcean
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
@@ -39,4 +39,18 @@ export default {
|
||||
enableMagentoRules: `${common.enable} ${common.magento}-specific rules`,
|
||||
joomlaRules: `${common.joomla} rules`,
|
||||
enableJoomlaRules: `${common.enable} ${common.joomla}-specific rules`,
|
||||
phpServer: `${common.php} server`,
|
||||
phpBackupServer: `${common.php} backup server`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'HHVM socket',
|
||||
php5Socket: '5.x socket',
|
||||
php70Socket: '7.0 socket',
|
||||
php71Socket: '7.1 socket',
|
||||
php72Socket: '7.2 socket',
|
||||
php73Socket: '7.3 socket',
|
||||
php74Socket: '7.4 socket',
|
||||
php80Socket: '8.0 socket',
|
||||
phpSocket: 'PHP socket',
|
||||
custom: 'Custom',
|
||||
disabled: 'Disabled',
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2020 DigitalOcean
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
@@ -28,11 +28,10 @@ import https from './https';
|
||||
import logging from './logging';
|
||||
import nginx from './nginx';
|
||||
import performance from './performance';
|
||||
import php from './php';
|
||||
import python from './python';
|
||||
import reverseProxy from './reverse_proxy';
|
||||
import security from './security';
|
||||
import tools from './tools';
|
||||
import docker from './docker';
|
||||
|
||||
export default { https, logging, nginx, performance, php, python, reverseProxy, security, tools, docker };
|
||||
export default { https, logging, nginx, performance, python, reverseProxy, security, tools, docker };
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import common from '../../common';
|
||||
|
||||
export default {
|
||||
phpServer: `${common.php} server`,
|
||||
phpMustBeEnabledOnOneSite: `${common.php} must be enabled on at least one site to configure global ${common.php} settings.`,
|
||||
phpBackupServer: `${common.php} backup server`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'HHVM socket',
|
||||
php5Socket: '5.x socket',
|
||||
php70Socket: '7.0 socket',
|
||||
php71Socket: '7.1 socket',
|
||||
php72Socket: '7.2 socket',
|
||||
php73Socket: '7.3 socket',
|
||||
php74Socket: '7.4 socket',
|
||||
php80Socket: '8.0 socket',
|
||||
phpSocket: 'PHP socket',
|
||||
custom: 'Custom',
|
||||
disabled: 'Disabled',
|
||||
};
|
||||
@@ -39,4 +39,18 @@ export default {
|
||||
enableMagentoRules: `${common.enable} les règles spécifiques à ${common.magento}`,
|
||||
joomlaRules: `Règles ${common.joomla}`,
|
||||
enableJoomlaRules: `${common.enable} les règles spécifiques à ${common.joomla}`,
|
||||
phpServer: `Serveur ${common.php}`,
|
||||
phpBackupServer: `Serveur de sauvegarde ${common.php}`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'Socket HHVM',
|
||||
php5Socket: 'Socket 5.x',
|
||||
php70Socket: 'Socket 7.0',
|
||||
php71Socket: 'Socket 7.1',
|
||||
php72Socket: 'Socket 7.2',
|
||||
php73Socket: 'Socket 7.3',
|
||||
php74Socket: 'Socket 7.4',
|
||||
php80Socket: 'Socket 8.0',
|
||||
phpSocket: 'Socket PHP',
|
||||
custom: 'Custom', // TODO: translate
|
||||
disabled: 'Désactivé',
|
||||
};
|
||||
|
||||
@@ -28,11 +28,10 @@ import https from './https';
|
||||
import logging from './logging';
|
||||
import nginx from './nginx';
|
||||
import performance from './performance';
|
||||
import php from './php';
|
||||
import python from './python';
|
||||
import reverseProxy from './reverse_proxy';
|
||||
import security from './security';
|
||||
import tools from './tools';
|
||||
import docker from './docker';
|
||||
|
||||
export default { https, logging, nginx, performance, php, python, reverseProxy, security, tools, docker };
|
||||
export default { https, logging, nginx, performance, python, reverseProxy, security, tools, docker };
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import common from '../../common';
|
||||
|
||||
export default {
|
||||
phpServer: `Serveur ${common.php}`,
|
||||
phpMustBeEnabledOnOneSite: `${common.php} doit être activé sur au moins un site pour configurer les paramètres globaux de ${common.php}.`,
|
||||
phpBackupServer: `Serveur de sauvegarde ${common.php}`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'Socket HHVM',
|
||||
php5Socket: 'Socket 5.x',
|
||||
php70Socket: 'Socket 7.0',
|
||||
php71Socket: 'Socket 7.1',
|
||||
php72Socket: 'Socket 7.2',
|
||||
php73Socket: 'Socket 7.3',
|
||||
php74Socket: 'Socket 7.4',
|
||||
php80Socket: 'Socket 8.0',
|
||||
phpSocket: 'Socket PHP',
|
||||
custom: 'Custom', // TODO: translate
|
||||
disabled: 'Désactivé',
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2020 DigitalOcean
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
@@ -39,4 +39,18 @@ export default {
|
||||
enableMagentoRules: `${common.enable} regras específicas do ${common.magento}`,
|
||||
joomlaRules: `Regras do ${common.joomla}`,
|
||||
enableJoomlaRules: `${common.enable} regras específicas do ${common.joomla}`,
|
||||
phpServer: `Servidor ${common.php}`,
|
||||
phpBackupServer: `Servidor de backup ${common.php}`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'Socket HHVM',
|
||||
php5Socket: 'Socket 5.x',
|
||||
php70Socket: 'Socket 7.0',
|
||||
php71Socket: 'Socket 7.1',
|
||||
php72Socket: 'Socket 7.2',
|
||||
php73Socket: 'Socket 7.3',
|
||||
php74Socket: 'Socket 7.4',
|
||||
php80Socket: 'Socket 8.0',
|
||||
phpSocket: 'Socket PHP',
|
||||
custom: 'Custom', // TODO: translate
|
||||
disabled: 'Desabilitado',
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2020 DigitalOcean
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
@@ -28,11 +28,10 @@ import https from './https';
|
||||
import logging from './logging';
|
||||
import nginx from './nginx';
|
||||
import performance from './performance';
|
||||
import php from './php';
|
||||
import python from './python';
|
||||
import reverseProxy from './reverse_proxy';
|
||||
import security from './security';
|
||||
import tools from './tools';
|
||||
import docker from './docker';
|
||||
|
||||
export default { https, logging, nginx, performance, php, python, reverseProxy, security, tools, docker };
|
||||
export default { https, logging, nginx, performance, python, reverseProxy, security, tools, docker };
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import common from '../../common';
|
||||
|
||||
export default {
|
||||
phpServer: `Servidor ${common.php}`,
|
||||
phpMustBeEnabledOnOneSite: `O ${common.php} deve estar habilitado em pelo menos um site para definir as configurações globais do ${common.php}.`,
|
||||
phpBackupServer: `Servidor de backup ${common.php}`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'Socket HHVM',
|
||||
php5Socket: 'Socket 5.x',
|
||||
php70Socket: 'Socket 7.0',
|
||||
php71Socket: 'Socket 7.1',
|
||||
php72Socket: 'Socket 7.2',
|
||||
php73Socket: 'Socket 7.3',
|
||||
php74Socket: 'Socket 7.4',
|
||||
php80Socket: 'Socket 8.0',
|
||||
phpSocket: 'Socket PHP',
|
||||
custom: 'Custom', // TODO: translate
|
||||
disabled: 'Desabilitado',
|
||||
};
|
||||
@@ -39,4 +39,18 @@ export default {
|
||||
enableMagentoRules: `${common.enable} ${common.magento}-специфичные правила`,
|
||||
joomlaRules: `${common.joomla} правила`,
|
||||
enableJoomlaRules: `${common.enable} ${common.joomla}-специфичные правила`,
|
||||
phpServer: `${common.php} сервер`,
|
||||
phpBackupServer: `${common.php} бекап сервер`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'HHVM сокет',
|
||||
php5Socket: '5.x сокет',
|
||||
php70Socket: '7.0 сокет',
|
||||
php71Socket: '7.1 сокет',
|
||||
php72Socket: '7.2 сокет',
|
||||
php73Socket: '7.3 сокет',
|
||||
php74Socket: '7.4 сокет',
|
||||
php80Socket: '8.0 сокет',
|
||||
phpSocket: 'PHP сокет',
|
||||
custom: 'Другой',
|
||||
disabled: 'Выключено',
|
||||
};
|
||||
|
||||
@@ -28,11 +28,10 @@ import https from './https';
|
||||
import logging from './logging';
|
||||
import nginx from './nginx';
|
||||
import performance from './performance';
|
||||
import php from './php';
|
||||
import python from './python';
|
||||
import reverseProxy from './reverse_proxy';
|
||||
import security from './security';
|
||||
import tools from './tools';
|
||||
import docker from './docker';
|
||||
|
||||
export default { https, logging, nginx, performance, php, python, reverseProxy, security, tools, docker };
|
||||
export default { https, logging, nginx, performance, python, reverseProxy, security, tools, docker };
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import common from '../../common';
|
||||
|
||||
export default {
|
||||
phpServer: `${common.php} сервер`,
|
||||
phpMustBeEnabledOnOneSite: `${common.php} должен быть включен как минимум на одном сайте, чтобы сконфигурировать глобальные настройки ${common.php}.`,
|
||||
phpBackupServer: `${common.php} бекап сервер`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'HHVM сокет',
|
||||
php5Socket: '5.x сокет',
|
||||
php70Socket: '7.0 сокет',
|
||||
php71Socket: '7.1 сокет',
|
||||
php72Socket: '7.2 сокет',
|
||||
php73Socket: '7.3 сокет',
|
||||
php74Socket: '7.4 сокет',
|
||||
php80Socket: '8.0 сокет',
|
||||
phpSocket: 'PHP сокет',
|
||||
custom: 'Другой',
|
||||
disabled: 'Выключено',
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2020 DigitalOcean
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
@@ -39,4 +39,18 @@ export default {
|
||||
enableMagentoRules: `${common.enable} ${common.magento}专属规则`,
|
||||
joomlaRules: `${common.joomla} 规则`,
|
||||
enableJoomlaRules: `${common.enable} ${common.joomla}专属规则`,
|
||||
phpServer: `${common.php} 服务`,
|
||||
phpBackupServer: `${common.php}备份服务器`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'HHVM socket',
|
||||
php5Socket: '5.x socket',
|
||||
php70Socket: '7.0 socket',
|
||||
php71Socket: '7.1 socket',
|
||||
php72Socket: '7.2 socket',
|
||||
php73Socket: '7.3 socket',
|
||||
php74Socket: '7.4 socket',
|
||||
php80Socket: '8.0 socket',
|
||||
phpSocket: 'PHP socket',
|
||||
custom: '自定义',
|
||||
disabled: '禁用',
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2020 DigitalOcean
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
@@ -28,11 +28,10 @@ import https from './https';
|
||||
import logging from './logging';
|
||||
import nginx from './nginx';
|
||||
import performance from './performance';
|
||||
import php from './php';
|
||||
import python from './python';
|
||||
import reverseProxy from './reverse_proxy';
|
||||
import security from './security';
|
||||
import tools from './tools';
|
||||
import docker from './docker';
|
||||
|
||||
export default { https, logging, nginx, performance, php, python, reverseProxy, security, tools, docker };
|
||||
export default { https, logging, nginx, performance, python, reverseProxy, security, tools, docker };
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import common from '../../common';
|
||||
|
||||
export default {
|
||||
phpServer: `${common.php} 服务`,
|
||||
phpMustBeEnabledOnOneSite: `必须在至少一个站点上启用${common.php}才能配置全局${common.php}设置。`,
|
||||
phpBackupServer: `${common.php}备份服务器`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'HHVM socket',
|
||||
php5Socket: '5.x socket',
|
||||
php70Socket: '7.0 socket',
|
||||
php71Socket: '7.1 socket',
|
||||
php72Socket: '7.2 socket',
|
||||
php73Socket: '7.3 socket',
|
||||
php74Socket: '7.4 socket',
|
||||
php80Socket: '8.0 socket',
|
||||
phpSocket: 'PHP socket',
|
||||
custom: '自定义',
|
||||
disabled: '禁用',
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2020 DigitalOcean
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
@@ -39,4 +39,18 @@ export default {
|
||||
enableMagentoRules: `${common.enable} ${common.magento}專屬規則`,
|
||||
joomlaRules: `${common.joomla} 規則`,
|
||||
enableJoomlaRules: `${common.enable} ${common.joomla}專屬規則`,
|
||||
phpServer: `${common.php} 服務`,
|
||||
phpBackupServer: `${common.php}備份服務器`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'HHVM socket',
|
||||
php5Socket: '5.x socket',
|
||||
php70Socket: '7.0 socket',
|
||||
php71Socket: '7.1 socket',
|
||||
php72Socket: '7.2 socket',
|
||||
php73Socket: '7.3 socket',
|
||||
php74Socket: '7.4 socket',
|
||||
php80Socket: '8.0 socket',
|
||||
phpSocket: 'PHP socket',
|
||||
custom: '自定义',
|
||||
disabled: '禁用',
|
||||
};
|
||||
|
||||
@@ -28,11 +28,10 @@ import https from './https';
|
||||
import logging from './logging';
|
||||
import nginx from './nginx';
|
||||
import performance from './performance';
|
||||
import php from './php';
|
||||
import python from './python';
|
||||
import reverseProxy from './reverse_proxy';
|
||||
import security from './security';
|
||||
import tools from './tools';
|
||||
import docker from './docker';
|
||||
|
||||
export default { https, logging, nginx, performance, php, python, reverseProxy, security, tools, docker };
|
||||
export default { https, logging, nginx, performance, python, reverseProxy, security, tools, docker };
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
/*
|
||||
Copyright 2021 DigitalOcean
|
||||
|
||||
This code is licensed under the MIT License.
|
||||
You may obtain a copy of the License at
|
||||
https://github.com/digitalocean/nginxconfig.io/blob/master/LICENSE or https://mit-license.org/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and / or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions :
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
import common from '../../common';
|
||||
|
||||
export default {
|
||||
phpServer: `${common.php} 服務`,
|
||||
phpMustBeEnabledOnOneSite: `必須在至少一個網站上啟用${common.php}才能配寘全域${common.php}設定。`,
|
||||
phpBackupServer: `${common.php}備份服務器`,
|
||||
tcp: 'TCP',
|
||||
hhvmSocket: 'HHVM socket',
|
||||
php5Socket: '5.x socket',
|
||||
php70Socket: '7.0 socket',
|
||||
php71Socket: '7.1 socket',
|
||||
php72Socket: '7.2 socket',
|
||||
php73Socket: '7.3 socket',
|
||||
php74Socket: '7.4 socket',
|
||||
php80Socket: '8.0 socket',
|
||||
phpSocket: 'PHP socket',
|
||||
custom: '自定义',
|
||||
disabled: '禁用',
|
||||
};
|
||||
Reference in New Issue
Block a user