Configuration Options
- 20 Jun 2023
- Print
- DarkLight
Configuration Options
- Updated on 20 Jun 2023
- Print
- DarkLight
Article Summary
Share feedback
Thanks for sharing your feedback!
Configuring the rust module in Fastly is done via the Compute@Edge Dictionary.
Required Configurations
Configuration Name | Type | Default |
---|---|---|
px_app_id | string | "" |
px_cookie_secret | string | "" |
px_auth_token | string | "" |
Optional Configurations
Configuration Name | Type | Default |
---|---|---|
px_module_enabled | bool | false |
px_module_mode | "active_blocking", "monitor" | "monitor" |
px_debug | bool | false |
px_blocking_score | number | 100 |
px_sensitive_headers | list | [] |
px_sensitive_routes | list | [] |
px_filter_by_route | list | [] |
px_filter_by_user_agent | list | [] |
px_filter_by_ip | list | [] |
px_filter_by_http_method | list | [] |
px_custom_cookie_header | string | "" |
px_enforced_routes | list | [] |
px_monitored_routes | list | [] |
px_bypass_monitor_header | string | "" |
px_first_party_enabled | bool | true |
px_custom_logo | string | "" |
px_js_ref | string | "" |
px_css_ref | string | "" |
px_ip_headers | list | [] |
log_endpoint | string | "" |
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?