Skip to content

Commit

Permalink
disable WAF on cdh applications
Browse files Browse the repository at this point in the history
the loadbalancer enabled WAF. This PR disables it on the following
production pages

related to #5561

Co-authored-by: Vickie Karasic <[email protected]>
  • Loading branch information
kayiwa and VickieKarasic committed Dec 4, 2024
1 parent 4f313e0 commit 07c0aeb
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions roles/nginxplus/files/conf/http/cdh_prod_derrida.conf
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ server {
ssl_prefer_server_ciphers on;

location / {
# # app_protect_enable on;
# # app_protect_security_log_enable on;
app_protect_enable off;
app_protect_security_log_enable on;
proxy_pass http://cdh_derrida;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/cdh_prod_geniza.conf
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ server {
ssl_prefer_server_ciphers on;

location / {
app_protect_enable off;
proxy_pass http://geniza_prod;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
Expand Down
4 changes: 2 additions & 2 deletions roles/nginxplus/files/conf/http/cdh_prod_prodigy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ server {
ssl_prefer_server_ciphers on;

location / {
# # app_protect_enable on;
# app_protect_security_log_enable on;
app_protect_enable off;
app_protect_security_log_enable on;
proxy_pass http://prodigy;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
Expand Down
4 changes: 2 additions & 2 deletions roles/nginxplus/files/conf/http/cdh_prod_prosody.conf
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ server {
ssl_prefer_server_ciphers on;

location / {
# # app_protect_enable on;
# app_protect_security_log_enable on;
app_protect_enable off;
app_protect_security_log_enable on;
proxy_pass http://prosody;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ server {
ssl_prefer_server_ciphers on;

location / {
app_protect_enable off;
proxy_pass http://shxco_prod;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/cdh_prod_web.conf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ server {
}

location /sitemap.xml {
app_protect_enable off;
proxy_pass http://prod_cdhweb;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Host $host;
Expand Down
2 changes: 1 addition & 1 deletion roles/nginxplus/files/conf/http/lib-solr8-prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ upstream lib-solr8-prod {
server {
listen 8983;
server_name lib-solr8-prod.princeton.edu;
app_protect_enable off;

client_max_body_size 0;

location / {
app_protect_enable off;
proxy_pass http://lib-solr8-prod;
proxy_cache_methods POST;
proxy_set_header Connection "";
Expand Down
1 change: 1 addition & 0 deletions roles/nginxplus/files/conf/http/lib-solr9-prod.conf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ server {
client_max_body_size 0;

location / {
app_protect_enable off;
proxy_pass http://lib-solr9-prod;
proxy_cache_methods POST;
proxy_set_header Connection "";
Expand Down

0 comments on commit 07c0aeb

Please sign in to comment.