vod_proxy_header_value
The `vod_proxy_header_value` directive specifies custom headers to be sent in video-on-demand proxying requests.
Description
The vod_proxy_header_value directive is used to customize the HTTP headers sent when proxying requests for video-on-demand (VOD) content in the NGINX-based VOD packager module. This directive enables users to define specific values for headers that will be included in the requests forwarded to upstream servers. This can be particularly useful when upstream services require specific headers for authentication, tracking, or other purposes related to the handling of video content.
The directive can be set in various contexts including http, server, and location. It accepts a single argument, which is the value that you wish to set for the proxy header. When used within an NGINX configuration, this directive should be placed in a context that is relevant to your VOD proxying setup, allowing for tailored header configurations based on the given location or server block.
By using the vod_proxy_header_value, you can greatly enhance the interaction between your NGINX setup and backend services, ensuring that the right headers are present in the outgoing requests. It is important for users to pay attention to the specific values required by their upstream services to avoid issues with content delivery.
Config Example
location /vod {
vod_proxy_header_value "Custom-header-value";
vod_enable on;
vod_path /path/to/video/files;
}Ensure that the header value you provide is correct and expected by the upstream service to avoid errors.
This directive should be used in the correct context (http, server, or location) to take effect. Misplacing it may lead to it being ignored.
Multiple vod_proxy_header_value directives can be specified. Be cautious as they may overwrite each other if conflicting values are set.