'nginx ssl_verify_client enabled/disabled based on a request header

Can the nginx ssl_verify_client directive be toggled between different values (say off/optional_no_ca) depending on whether a request header is present or not (say a custom Authorization: Client-Cert <user>)?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source