Using the more_set_input_headers module, you can more flexibly manage request headers. This module allows you to set and change request header values.
For example, adding the x-request-waf header with the value true
server {
include static/server.conf;
listen 80;
server_name example.ru;
set $BACKEND http://10.146.33.94:80;
more_set_input_headers 'x-request-waf: true';
location / {
include static/waf.conf;
}
}
Note
After adding/editing ibatyr-nginx configuration files, you need to check the configuration and apply the settings:
sudo ibatyr-nginx test
sudo ibatyr-nginx reload