vod_drm_max_info_length

Sets the maximum length for DRM information in the NGINX-based VOD Packager module.

Syntaxvod_drm_max_info_length size;
Defaultnone
Contexthttp, server, location
Arguments1

Description

The vod_drm_max_info_length directive controls the maximum size of the DRM (Digital Rights Management) information that can be included in the response headers of requests processed by the NGINX-based VOD Packager module. This functionality is relevant for use cases involving encrypted streaming, where specific metadata is needed to manage access and rights to media content.

When set, this directive ensures that the size of the DRM information attached to media responses does not exceed a specified limit, thus helping to optimize performance and prevent potential issues related to excessively large headers. The parameter is expected to be provided as an integer value that defines the maximum length in bytes. If the actual DRM information exceeds this length, it may be truncated or omitted, depending on the implementation specifics of the module.

Setting this directive appropriately is crucial for balancing between security (by including necessary DRM metadata) and efficiency (by avoiding bloated headers that could impact network performance). This directive can be configured at the http, server, and location contexts, offering flexibility in its application across different parts of the server configuration.

Config Example

vod_drm_max_info_length 2048;

Ensure the size is sufficient to include all necessary DRM information to prevent truncation.

Overly large values can lead to performance issues, especially under heavy load.

Setting this directive without understanding the DRM requirements may result in access issues for protected content.

← Back to all directives