Lumen help

Service-wide definitions (V2)

Adding a Service-Wide Definition

Use an IP-group definition to create a custom grouping of IP addresses.

In the “IP Addresses in” field, type an IP address you want to include in the definition. To add another IP address, press “Add” and type another IP address. Please note that you can add IP addresses individually or as a range using CIDR notation.

Use a token-authentication definition you will refer to in a token-authentication match rule. When the client presents the URL to the CDN, the CDN creates its own version of the token using a shared secret and predefined token generation algorithm (sha1). If the client’s token matches the CDN calculated token, the client’s request is allowed to proceed and the requested content is returned to the client. If the client’s token doesn't match, the CDN returns either an HTTP 403 response or 302 temporary redirect.

Add secret names (up to 10) to the definition by clicking on “Add” above the Secret name section, and typing your secret name. Repeat until you’ve added all the secret names you wish to add. Add query parameters to include or exclude from the hash to the definition by clicking on “Add” above the query parameter name section, and typing your query parameter name. Repeat until you’ve added all the query parameter names. The “Query Parameter Control” drop-down is used to define whether to include or exclude these parameter names from the hash. From the Date Preference list, select your preference: EPOCH or GMT. If you want to use a query string other than nva (not valid after), type it in the “NVA Name” field. If you want to use a query string other than nvb (not valid before), type it in the “NVB Name” field. If you want to use a query string other than hash, type it in the Hash field.

You can view Lua-scripting definitions CDN Support has added to a configuration (at your request). Once Lumen CDN Support creates a Lua scripting definition for you, you can view it and add it to a match rule, but you can't make changes. The Lua script remains on the configuration for future versions and Media Portal include the Lua script if you copy the configuration to create a new configuration.

Media Portal lists the Lua-scripting definitions for the configuration (if any). If you select one from the list, Media Portal displays the Lua script you selected, the direction for the Lua script (whether the Lua script is for requests, responses, or both), whether the Lua script is designated as heavy, and the execution type (Edge or Fill).

Use request-header definitions to create a custom header in requests sent up stream to their origin.

In the “Header Name” field, type the name of the request header and in the “Header Value” field, type the value to be returned for that header. To add additional headers, click “Add”, then repeat the steps.

Use a response-header definition to return custom header responses to specific requests.

To specify categories of HTTP status codes you want to include in the definition, select the checkbox(es) next to those categories. You can also select the “Custom Status Code” checkbox and specify other status codes (separated by a comma) in the field that appears. Alternatively, you can add all status codes to the definition by selecting the “All Responses” checkbox. Next, fill in the information for the response header. In the “Header Name” field, type the name of the response header. In the “Header Value” field, type the value to be returned for that header. To add additional headers, click “Add”, then repeat the steps.

Dynamic content transformation (DCT) allows your origin server to serve a single variant of an object, either identity or gzip, and have the Lumen CDN dynamically transform that content into the desired variant. Use a DCT definition to specify the file extensions you want DCT applied to.

To add extensions to the definition that you'd like DCT applied to, type an extension in the “extensions” field. To add additional extensions, click “Add”, then fill in the field. To make this definition the default DCT definition for the configuration, click the “Default” checkbox.

By default, encodings are normalized to either Identity or Gzip. Any other encodings are automatically dropped from the request. However, you may override this by creating an accept-encoding definition that is attached to a property-based setting. 

Creating an accept-encoding definition allows you to specify extensions and compression types that should be accepted if included in a client’s request. Please note that the CDN will not transform or compress files. The file and compression types must be supported by the origin. Furthermore, normalization never causes the Lumen CDN to serve an encoding that was not requested or that the client has specified as unacceptable.

Add extensions and compression types to the respectively labeled fields and if you wish to add additional extensions and compression types, click on the “add” button above the respective field.