Secure token module for NGINX

36 — 所有核心与模块指令——语法、默认值、上下文与真实配置示例。

acl acl 指令指定在 NGINX 中用于生成安全令牌的访问控制列表 (ACL)。 additional_querylist 'additional_querylist' 指令允许向用于 CDN 请求的安全令牌添加额外的查询参数。 algorithm The `algorithm` 指令指定 NGINX Secure Token 模块中用于生成安全令牌的哈希算法。 end NGINX 的 Secure Token 模块中的 'end' 指令指定安全令牌的结束时间。 exp_param_name 定义用于 Akamai CDN 的安全令牌参数名称。 ip_address 定义在为请求生成的安全令牌中应包含的 IP 地址。 iv NGINX 的 Secure Token 模块中的 'iv' 指令指定用于加密操作的初始化向量。 key 'key' 指令指定用于在 NGINX 的 Secure Token 模块中为请求生成安全令牌的 HMAC 密钥。 key_id 'key' 指令指定用于签名由 NGINX Secure Token Module 为 CDN 集成生成的安全令牌的加密密钥。 key_pair_id `key_pair_id` 指令指定用于生成 Akamai CDN 身份验证的安全令牌的密钥。 md5_param_name 指令 `md5_param_name` 指定在 NGINX 的安全令牌配置中用于传输 MD5 签名的查询参数名称。 param_name `param_name` 指令指定在使用 Secure Token Module 的 NGINX 配置中用于生成安全令牌的查询参数名称。 private_key_file `private_key_file` 指令指定用于在 NGINX 的 Secure Token 模块中生成安全令牌的私钥文件路径。 secure_token The `secure_token` 指令配置用于嵌入媒体清单或作为 cookie 以实现安全内容分发的令牌值。 httpserverlocation secure_token_avoid_cookies `secure_token_avoid_cookies` 指令将 NGINX 配置为优先使用查询字符串令牌而不是 cookie 令牌进行 CDN 身份验证。 httpserverlocation secure_token_cache_scope 定义 NGINX 服务器配置中安全令牌缓存的作用域。 httpserverlocation secure_token_content_type_f4m 'secure_token_content_type_f4m' 指令指定用于通过 NGINX secure token module 生成安全令牌的 f4m… httpserverlocation secure_token_content_type_m3u8 `secure_token_content_type_m3u8` 指令指定应为哪些媒体类型生成安全令牌,以用于流式内容。 httpserverlocation secure_token_content_type_mpd secure_token_content_type_mpd 指令指定在 NGINX 生成安全令牌时用于 DASH 媒体展示描述 (MPD) 的… httpserverlocation secure_token_cookie_token_expires_time 配置 NGINX 中 Secure Token 模块生成的 cookie 令牌的过期时间。 httpserverlocation secure_token_encrypt_uri 在 NGINX 中,`secure_token_encrypt_uri` 指令使用配置的加密密钥对 URI 进行安全加密。 httpserverlocation secure_token_encrypt_uri_hash_size 指令 `secure_token_encrypt_uri_hash_size` 指定 Secure Token 模块中用于对 URI 进行加密的哈希大小。 httpserverlocation secure_token_encrypt_uri_iv 为 NGINX 的 Secure Token 模块设置用于 URI 加密的初始化向量(IV)。 httpserverlocation secure_token_encrypt_uri_key `secure_token_encrypt_uri_key` 指令指定用于在 NGINX 的 Secure Token 模块中加密 URI 的密钥。 httpserverlocation secure_token_encrypt_uri_part `secure_token_encrypt_uri_part` 指令启用对为安全访问内容而生成的 tokens 中 URI 部分的加密。 httpserverlocation secure_token_expires_time secure_token_expires_time 指令指定在 NGINX 中非令牌化响应的过期时间。 httpserverlocation secure_token_last_modified secure_token_last_modified 指令指定 NGINX 中安全令牌的最后修改时间戳。 httpserverlocation secure_token_query_token_expires_time 指定 NGINX 的 secure token 模块中查询字符串令牌响应的过期时间。 httpserverlocation secure_token_token_cache_scope 指令 `secure_token_token_cache_scope` 指定了在 NGINX 中为响应生成的安全令牌的缓存行为。 httpserverlocation secure_token_token_last_modified NGINX 中的 `secure_token_token_last_modified` 指令设置用于 CDN 请求的安全令牌的最后修改时间。 httpserverlocation secure_token_tokenize_segments 'secure_token_tokenize_segments' 指令启用或禁用为 CDN URI 中的指定段生成令牌。 httpserverlocation secure_token_types 定义应在 NGINX 中接收安全令牌的 MIME 类型。 httpserverlocation secure_token_uri_filename_prefix 设置必须匹配的 URI 文件名前缀,以便在 NGINX 的 secure token 模块中生成 token。 httpserverlocation session_end `session_end` 指令定义了用于 CDN 请求的安全令牌的过期时间。 session_start 指令 `session_start` 为用于 CDN 验证的安全令牌初始化会话开始时间。 start 定义由 NGINX Secure Token 模块生成的安全令牌的起始时间。