Search code examples
amazon-web-servicesnginxamazon-elastic-beanstalknginx-reverse-proxy

How to extend Nginx config in elastic beanstalk (Amazon Linux 2) For .NET CORE PROJECT


Increasing client_max_body_size in Nginx conf on AWS Elastic Beanstalk. How to extend Nginx config in elastic beanstalk (Amazon Linux 2) I had created the following files and folder but still not working.

|-- .platform
| `-- nginx
| `-- conf.d
| `-- myconf.conf

My code is written in .NET core.


Solution

  • Try including the config file to the project, then press right click on the file, go to properties, then in build action propperty select: Content; and into copy to output directory select copy always

    like this:

    enter image description here