HTTP directives
proxy_ssl_key_log directive (HTTP)
Export origin TLS session secrets in a diagnostic key-log file. Such material can expose traffic contents; never enable on real traffic as a routine logging option. Context: http, server, location. Documented default: none. Version: 1.27.2. Commercial subscription only. Example is recognition-only; never starts a service or writes session secrets. Partial configuration for an isolated synthetic lab; not a production policy.
Formal Syntax & Structure
nginx syntaxnginx
proxy_ssl_key_log path;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| path | restricted lab file path | For explicitly authorized synthetic debugging only; never commit or retain session secrets. |
Working Example
Example Snippetnginx
proxy_ssl_key_log logs/synthetic-only.keys;