mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
njs0.7.1 compat. (#3016)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user