Injection of multiple nginx directives with same name does not work. For example if I want to create multiple lua_shared_dict directives, only the last one will be injected.
nginx_http_lua_shared_dict=cache1 100k
nginx_http_lua_shared_dict=cache2 100k
nginx_http_lua_shared_dict=cache3 100k
# injected nginx_http_* directives
lua_shared_dict cache3 100k;
@luka1983 yes, this is known limitation, I think the proposal will be to add a lot more better injection support. The plan is clear, but we just have not had time to implement it. In addition to that we plan to add support for Nginx config includes like:
http {
include conf.d/http/*.conf;
server {
include conf.d/http/proxy/*.conf;
}
}
@luka1983, we decided that it was not worth to add this feature after we implemented it and discussed the pros and cons. So I close this. We will add better documentation to explain the possible work-arounds. Thank you!
@luka1983, we decided that it was not worth to add this feature after we implemented it and discussed the pros and cons. So I close this. We will add better documentation to explain the possible work-arounds. Thank you!
Is there a solution to this problem now?
@tzssangglass In the end I used the hack where I modified the kong's template config file for nginx (the one kong fills with directives found in kong.conf) and manually added needed directives.
Most helpful comment
@luka1983 yes, this is known limitation, I think the proposal will be to add a lot more better injection support. The plan is clear, but we just have not had time to implement it. In addition to that we plan to add support for Nginx config includes like: