|
|
@ -103,7 +103,7 @@
|
|
|
|
clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
|
|
|
|
clcf = ngx_http_conf_get_module_loc_conf(cf, ngx_http_core_module);
|
|
|
|
|
|
|
|
|
|
|
|
clcf->handler = ngx_http_redis_handler;
|
|
|
|
clcf->handler = ngx_http_redis_handler;
|
|
|
|
@@ -936,10 +957,84 @@
|
|
|
|
@@ -936,10 +956,83 @@
|
|
|
|
rlcf->db = ngx_http_get_variable_index(cf, &ngx_http_redis_db);
|
|
|
|
rlcf->db = ngx_http_get_variable_index(cf, &ngx_http_redis_db);
|
|
|
|
rlcf->auth = ngx_http_get_variable_index(cf, &ngx_http_redis_auth);
|
|
|
|
rlcf->auth = ngx_http_get_variable_index(cf, &ngx_http_redis_auth);
|
|
|
|
|
|
|
|
|
|
|
@ -141,7 +141,6 @@
|
|
|
|
+ if (rlcf->upstream.upstream == NULL) {
|
|
|
|
+ if (rlcf->upstream.upstream == NULL) {
|
|
|
|
+ return NGX_CONF_ERROR;
|
|
|
|
+ return NGX_CONF_ERROR;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
|
|
return NGX_CONF_OK;
|
|
|
|
return NGX_CONF_OK;
|
|
|
|
}
|
|
|
|
}
|
|
|
|