mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-03 16:03:38 +00:00
@@ -13,6 +13,15 @@ server {
|
||||
{% include "_brotli.conf" %}
|
||||
{% include "_access.conf" %}
|
||||
|
||||
{% if block_exploits == 1 or block_exploits == true %}
|
||||
modsecurity on;
|
||||
{% if caching_enabled == 1 or caching_enabled == true -%}
|
||||
modsecurity_rules_file /usr/local/nginx/conf/conf.d/include/modsecurity-crs.conf;
|
||||
{% else %}
|
||||
modsecurity_rules_file /usr/local/nginx/conf/conf.d/include/modsecurity.conf;
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
include conf.d/include/acme-challenge.conf;
|
||||
include conf.d/include/block-exploits.conf;
|
||||
|
||||
|
Reference in New Issue
Block a user