njs0.7.1 compat. (#3016)

This commit is contained in:
kulikov-a
2022-06-25 10:42:14 +02:00
committed by GitHub
parent 339993680d
commit a357676b92
2 changed files with 4 additions and 2 deletions
@@ -47,3 +47,5 @@ function check_intercept(r) {
}
return tls_result.status;
}
export default { check_intercept };
@@ -21,8 +21,8 @@ log_format anonymized ':: - $remote_user [$time_local] "$request" '
#tcp_nopush on;
# https intercept detection
js_include /usr/local/opnsense/scripts/nginx/ngx_functions.js;
js_set $tls_intercepted check_intercept;
js_import /usr/local/opnsense/scripts/nginx/ngx_functions.js;
js_set $tls_intercepted ngx_functions.check_intercept;
# 200M should be big enough for file servers etc.
client_max_body_size 200M;