apply requested changes

pull/388/head
Robert 2022-10-02 20:09:11 +03:00
parent aba750a9a0
commit df033ebef1
3 changed files with 6 additions and 6 deletions

View File

@ -66,8 +66,9 @@ export default (domains, global) => {
}
if (global.security.blockCommonExploits.computed) {
// Based on https://github.com/NginxProxyManager/nginx-proxy-manager/blob/v2.9.0/docker/rootfs/etc/nginx/conf.d/include/block-exploits.conf
// Block SQL Injections
config.push(['## Block SQL injections', '']);
config.push(['# Block SQL injections', '']);
config.push(['set $block_sql_injections', '0']);
config.push([
'if ($query_string ~ "union.*select.*(")',

View File

@ -29,4 +29,5 @@ import common from '../../common';
export default {
whenUsingWordPressUnsafeEvalIsOftenRequiredToAllowFunctionality: `When using ${common.wordPress}, <code class="slim">script-src 'self' 'unsafe-inline' 'unsafe-eval';</code> is often required in the Content Security Policy to allow the admin panel to function correctly.`,
security: 'Security',
blockCommonExploits: 'Block common exploits',
};

View File

@ -158,14 +158,13 @@ THE SOFTWARE.
<div class="field is-horizontal">
<div class="field-label">
<label class="label">Block common exploits</label>
<label class="label">{{$t('templates.globalSections.security.blockCommonExploits')}}</label>
</div>
<div class="field-body">
<div class="field">
<div
:class="`control${blockCommonExploits ? ' is-changed' : ''}`">
<div :class="`control${blockCommonExploits ? ' is-changed' : ''}`">
<div class="checkbox">
<PrettyCheck v-model="blockCommonExploits" class="p-default p-curve p-fill p-icon">
<PrettyCheck v-model="blockCommonExploits" class="p-default p-curve p-fill p-icon">
{{ $t("common.enable") }}
</PrettyCheck>
</div>
@ -222,7 +221,6 @@ THE SOFTWARE.
enabled: true,
},
};
export default {
name: 'GlobalSecurity', // Component name
display: 'templates.globalSections.security.security', // Display name for tab (i18n key)