linux/docker - common /opt/bunkerized-nginx folder
This commit is contained in:
@@ -108,7 +108,7 @@ http {
|
||||
{% if has_value("USE_PROXY_CACHE", "yes") %}proxy_cache_path /tmp/proxy_cache keys_zone=proxycache:{{ PROXY_CACHE_PATH_ZONE_SIZE }} {{ PROXY_CACHE_PATH_PARAMS }};{% endif %}
|
||||
|
||||
# custom http confs
|
||||
include /http-confs/*.conf;
|
||||
include /opt/bunkerized-nginx/http-confs/*.conf;
|
||||
|
||||
# LUA init block
|
||||
include /etc/nginx/init-lua.conf;
|
||||
|
||||
@@ -58,11 +58,11 @@ SecAuditLog /var/log/nginx/modsec_audit.log
|
||||
include /opt/bunkerized-nginx/crs-setup.conf
|
||||
|
||||
# custom CRS configurations before loading rules (exclusions)
|
||||
{% if is_custom_conf("/modsec-crs-confs") %}
|
||||
include /modsec-crs-confs/*.conf
|
||||
{% if is_custom_conf("/opt/bunkerized-nginx/modsec-crs-confs") %}
|
||||
include /opt/bunkerized-nginx/modsec-crs-confs/*.conf
|
||||
{% endif %}
|
||||
{% if MULTISITE == "yes" and is_custom_conf("/modsec-crs-confs/" + FIRST_SERVER) %}
|
||||
include /modsec-crs-confs/{{ FIRST_SERVER }}/*.conf
|
||||
{% if MULTISITE == "yes" and is_custom_conf("/opt/bunkerized-nginx/modsec-crs-confs/" + FIRST_SERVER) %}
|
||||
include /opt/bunkerized-nginx/modsec-crs-confs/{{ FIRST_SERVER }}/*.conf
|
||||
{% endif %}
|
||||
|
||||
# include OWASP CRS rules
|
||||
@@ -70,9 +70,9 @@ include /opt/bunkerized-nginx/crs/*.conf
|
||||
{% endif %}
|
||||
|
||||
# custom rules after loading the CRS
|
||||
{% if is_custom_conf("/modsec-confs") %}
|
||||
include /modsec-confs/*.conf
|
||||
{% if is_custom_conf("/opt/bunkerized-nginx/modsec-confs") %}
|
||||
include /opt/bunkerized-nginx/modsec-confs/*.conf
|
||||
{% endif %}
|
||||
{% if MULTISITE == "yes" and is_custom_conf("/modsec-confs/" + FIRST_SERVER) %}
|
||||
include /modsec-confs/{{ FIRST_SERVER }}/*.conf
|
||||
{% if MULTISITE == "yes" and is_custom_conf("/opt/bunkerized-nginx/modsec-confs/" + FIRST_SERVER) %}
|
||||
include /opt/bunkerized-nginx/modsec-confs/{{ FIRST_SERVER }}/*.conf
|
||||
{% endif %}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# custom config before server block
|
||||
include /pre-server-confs/*.conf;
|
||||
include /opt/bunkerized-nginx/pre-server-confs/*.conf;
|
||||
{% if MULTISITE == "yes" %}
|
||||
include /pre-server-confs/{{ FIRST_SERVER }}/*.conf;
|
||||
include /opt/bunkerized-nginx/pre-server-confs/{{ FIRST_SERVER }}/*.conf;
|
||||
{% endif %}
|
||||
|
||||
server {
|
||||
@@ -12,9 +12,9 @@ server {
|
||||
{% endif %}
|
||||
|
||||
# custom config
|
||||
include /server-confs/*.conf;
|
||||
include /opt/bunkerized-nginx/server-confs/*.conf;
|
||||
{% if MULTISITE == "yes" %}
|
||||
include /server-confs/{{ FIRST_SERVER }}/*.conf;
|
||||
include /opt/bunkerized-nginx/server-confs/{{ FIRST_SERVER }}/*.conf;
|
||||
{% endif %}
|
||||
|
||||
# proxy real IP
|
||||
|
||||
Reference in New Issue
Block a user