Syntax: proxy_ssl_verify_depth number;
Default: proxy_ssl_verify_depth 1;
Context: http, server, location
This directive appeared in version 1.7.0.
Sets the verification depth in the proxied HTTPS server certificates chain.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Faster split method, the only alternative within lua is using gsub, which | |
// is insanely slower. This function will actually return strings on the stack, | |
// so {str:split(d)} can be used to collect the return values in a table | |
// | |
// A more memory effecient use would be to use string.fsplit rather than using | |
// a table construct | |
// | |
// this avoids extra memory bloat and will keep the resulting strings on the stack | |
// | |
// Build: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from reconfigure.parsers import NginxParser | |
conf = '''map $ssl_server_name $proxy_tcp { | |
hostnames; | |
default upstream_tcp; | |
*.test.com upstream_tcp2; | |
"~*test[1-9].com" upstream_tcp3; | |
} | |
''' |