Configuration Options

Configuring the rust module is done via the [email protected] Dictionary.

Configuration NameTypeRequiredDefault
px_app_idstringrequired-
px_cookie_secretstringrequired-
px_auth_tokenstringrequired-
px_module_enabledbooloptionalfalse
px_module_mode"active_blocking", "monitor"optional"monitor"
px_debugbooloptionalfalse
px_blocking_scorenumberoptional100
px_sensitive_headerslistoptional[]
px_sensitive_routeslistoptional[]
px_filter_by_routelistoptional[]
px_filter_by_user_agentlistoptional[]
px_filter_by_iplistoptional[]
px_filter_by_http_methodlistoptional[]
px_custom_cookie_headerstringoptional""
px_enforced_routeslistoptional[]
px_monitored_routeslistoptional[]
px_bypass_monitor_headerstringoptional""
px_first_party_enabledbooloptionaltrue
px_custom_logostringoptional""
px_js_refstringoptional""
px_css_refstringoptional""
px_ip_headerslistoptional[]
log_endpointstringoptional""

The pxconfig.sh script could be used to populate Dictionary with the required values. Usage:

Required options:
-s, --service-id=SERVICE_ID       specify a service to deploy the dictionary
-v, --version=VER                 specify a service version
-a, --appid=APPID                 specify an appid
-c, --cookie_secret=SECRET        specify a cookie_secret
-t, --auth_token=TOKEN            specify an auth_token

Did this page help you?