'AL2 Extend nginx location block

In my source bundle I am using .platform/nginx/conf.d/ to extend nginx.conf.
I also need to add the following

proxy_buffer_size          128k;
proxy_buffers              4 256k;
proxy_busy_buffers_size    256k;

to the location block that is inside nginx.conf.

I have used approach that was unsuccessfull: created myconf.conf inside .platform/nginx/conf.d/elasticbeanstalk/

location = / {
    proxy_buffer_size          128k;
    proxy_buffers              4 256k;
    proxy_busy_buffers_size    256k;
}

How to do extend this block?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source