comparison src/http/modules/ngx_http_uwsgi_module.c @ 8042:c7e25324be11

Upstream: handling of certificates specified as an empty string. Now, if the directive is given an empty string, such configuration cancels loading of certificates, in particular, if they would be otherwise inherited from the previous level. This restores previous behaviour, before variables support in certificates was introduced (3ab8e1e2f0f7).
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 07 Jun 2022 20:08:57 +0400
parents 2bf7792c262e
children 9d98d524bd02
comparison
equal deleted inserted replaced
8041:0784ab86ad08 8042:c7e25324be11
2485 != NGX_OK) 2485 != NGX_OK)
2486 { 2486 {
2487 return NGX_ERROR; 2487 return NGX_ERROR;
2488 } 2488 }
2489 2489
2490 if (uwcf->upstream.ssl_certificate) { 2490 if (uwcf->upstream.ssl_certificate
2491 2491 && uwcf->upstream.ssl_certificate->value.len)
2492 {
2492 if (uwcf->upstream.ssl_certificate_key == NULL) { 2493 if (uwcf->upstream.ssl_certificate_key == NULL) {
2493 ngx_log_error(NGX_LOG_EMERG, cf->log, 0, 2494 ngx_log_error(NGX_LOG_EMERG, cf->log, 0,
2494 "no \"uwsgi_ssl_certificate_key\" is defined " 2495 "no \"uwsgi_ssl_certificate_key\" is defined "
2495 "for certificate \"%V\"", 2496 "for certificate \"%V\"",
2496 &uwcf->upstream.ssl_certificate->value); 2497 &uwcf->upstream.ssl_certificate->value);