Skip to content

Commit

Permalink
Fix tempate errors and remove remaining app protect directives
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Laddusaw committed Feb 5, 2025
1 parent f259068 commit 27272a1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion roles/nginxplus/files/conf/http/dev/catalog_staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ server {
ssl_prefer_server_ciphers on;

location / {
app_protect_enable off;
# app_protect_enable off;
limit_req zone=catalog-staging-ratelimit burst=80 nodelay;
# # app_protect_security_log_enable on;
proxy_pass http://catalog-staging;
Expand Down
2 changes: 1 addition & 1 deletion roles/nginxplus/files/conf/http/dev/grafana_nomad.conf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ server {
ssl_prefer_server_ciphers on;

location / {
app_protect_enable off;
# app_protect_enable off;
proxy_pass http://grafana-nomad;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Expand Down
8 changes: 4 additions & 4 deletions roles/nginxplus/files/conf/http/dev/static_staging.conf
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ server {
ssl_prefer_server_ciphers on;

location / {
app_protect_enable off;
app_protect_security_log_enable off;
# app_protect_enable off;
# app_protect_security_log_enable off;
proxy_pass http://static-staging;
proxy_cache static-stagingcache;
# health_check interval=10 fails=3 passes=2;
Expand All @@ -146,8 +146,8 @@ server {
ssl_prefer_server_ciphers on;

location / {
app_protect_enable off;
app_protect_security_log_enable off;
# app_protect_enable off;
# app_protect_security_log_enable off;
proxy_pass http://static-staging;
proxy_cache static-stagingcache;
proxy_intercept_errors on;
Expand Down
6 changes: 3 additions & 3 deletions roles/nginxplus/templates/etc_nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ load_module modules/ngx_rtmp_module.so;
{% if nginx_modules.xslt %}
load_module modules/ngx_http_xslt_filter_module.so;
{% endif %}
{% if nginx_modules.waf and nginx_type == "plus" and !nginx_modules.dos %}
{% if nginx_modules.waf and nginx_type == "plus" and not nginx_modules.dos %}
load_module modules/ngx_http_app_protect_module.so;
{% endif %}
{% if nginx_modules.dos and nginx_type == "plus" %}
Expand Down Expand Up @@ -73,11 +73,11 @@ http {
#tcp_nopush on;

keepalive_timeout 65;
{% if nginx_modules.waf and nginx_type == "plus" and !nginx_modules.dos %}
{% if nginx_modules.waf and nginx_type == "plus" and not nginx_modules.dos %}
app_protect_enable on;
app_protect_security_log_enable on;
app_protect_security_log "/etc/app_protect/conf/log_default.json" /var/log/app_protect/security.log;
{% elseif %}
{% elif nginx_modules.dos and nginx_type == "plus" %}
app_protect_dos_enable on;
{% endif %}

Expand Down

0 comments on commit 27272a1

Please sign in to comment.