Configuration Options
  • 20 Jun 2023
  • Dark
    Light

Configuration Options

  • Dark
    Light

Article Summary

Configuring the rust module in Fastly is done via the Compute@Edge Dictionary.

Required Configurations

Configuration NameTypeDefault
px_app_idstring""
px_cookie_secretstring""
px_auth_tokenstring""

Optional Configurations

Configuration NameTypeDefault
px_module_enabledboolfalse
px_module_mode"active_blocking", "monitor""monitor"
px_debugboolfalse
px_blocking_scorenumber100
px_sensitive_headerslist[]
px_sensitive_routeslist[]
px_filter_by_routelist[]
px_filter_by_user_agentlist[]
px_filter_by_iplist[]
px_filter_by_http_methodlist[]
px_custom_cookie_headerstring""
px_enforced_routeslist[]
px_monitored_routeslist[]
px_bypass_monitor_headerstring""
px_first_party_enabledbooltrue
px_custom_logostring""
px_js_refstring""
px_css_refstring""
px_ip_headerslist[]
log_endpointstring""

Auto deploying the configurations

We have created the pxconfig.sh script to be used to populate the configurations in the Dictionary automatically. Following is an example to populate the required configurations only:

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

Was this article helpful?

What's Next