Skip to content

Commit cb0bdef

Browse files
authored
Add reconnect_period_seconds directive support for NAP 3.5 (#162)
1 parent d1657c9 commit cb0bdef

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ BREAKING CHANGES:
119119
* Rename `html_file_location` to `root`.
120120
* Rename `html_file_name` to `index`.
121121
* NGINX App Protect 3.2 supports multiple log destinations per scope. Changing the `security_log` variable from a dictionary to a list of objects in order to support this.
122+
* NGINX App Protect 3.5 supports a new timeout directive which allows the user to configure the period of time between reconnect retries of the module to the web application firewall (WAF) engine. Added this as a supported global directive.
122123

123124
DEPRECATION WARNINGS:
124125

defaults/main/template.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ nginx_config_main_template:
3838
# compressed_requests_action: drop # Optional -- 'pass' or 'drop'
3939
# request_buffer_overflow_action: pass # Optional -- 'pass' or 'drop'
4040
# user_defined_signatures: [] # Optional list
41+
# reconnect_period_seconds: 5 # Optional integer
4142
# app_protect: # Optional -- Configure NGINX App Protect
4243
# enable: false # Optional boolean
4344
# policy_file: path # Optional

templates/http/app_protect_waf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ app_protect_request_buffer_overflow_action {{ app_protect['request_buffer_overfl
2828
app_protect_user_defined_signatures {{ signature }};
2929
{% endfor %}
3030
{% endif %}
31+
{% if app_protect['reconnect_period_seconds'] is defined %}
32+
app_protect_reconnect_period_seconds {{ app_protect['reconnect_period_seconds'] }};
33+
{% endif %}
3134
{% endmacro %}
3235

3336
{% macro app_protect_waf_local(app_protect) %}

0 commit comments

Comments
 (0)