I have Nginx server acting as a reverse proxy. From its downstream, the request sets a header info about the ssl protocol for Nginx to use for proxy. I put this info in a variable in the nginx.conf file called "$origin_ssl_protocol". So it looks like:
proxy_ssl_protocols $origin_ssl_protocol;
Now the problem is how does the Nginx module (the function handler) get the value of this variable? As far as I know, the handler for proxy_ssl_protocols is "ngx_conf_set_bitmask_slot", and it only accepts the pure values like TLSv1, SSLv3, rather than a variable holding these values.
I want to develop my own module, does anyone know how Nginx get the value of a variable in the Conf file (assuming that variable already has a valid value)?