Skip to content

Commit

Permalink
update config
Browse files Browse the repository at this point in the history
  • Loading branch information
arpith-f5 committed Sep 20, 2024
1 parent 780aee6 commit fc6472e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions terraform/deployments/with-web-application-firewall/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,29 @@ worker_processes auto;
worker_rlimit_nofile 8192;
pid /run/nginx/nginx.pid;
load_module modules/ngx_http_app_protect_module.so;
events {
worker_connections 4000;
}
error_log /var/log/nginx/error.log error;
http {
app_protect_enforcer_address 127.0.0.1:50000;
server {
listen 80 default_server;
server_name localhost;
location / {
return 200 'Hello World';
app_protect_enable on;
app_protect_policy_file /etc/app_protect/conf/NginxDefaultPolicy.tgz;
proxy_pass http://127.0.0.1:80/proxy/$request_uri;
}
location /proxy {
default_type text/html;
return 200 "Hello World\n";
}
}
}
Expand Down

0 comments on commit fc6472e

Please sign in to comment.