[RUBY] When nginx conf is not reflected well in AWS Elastic Beanstalk + Rails environment

■ Method As per the official document, if you place the file under [.platform], it will be reflected.

~/workspace/my-app/ |-- .platform |  `-- nginx |    `-- conf.d |      `-- myconf.conf `-- other source files

■ Official document · Elastic Beanstalk Linux platform extension https://docs.aws.amazon.com/ja_jp/elasticbeanstalk/latest/dg/platforms-linux-extend.html

■ Bonus The reason why I posted the officially stated content is that it doesn't get caught in the search at all. [413 Request Entity Too Large] conf needs to be edited for error handling, When I looked it up, I found two ways to describe it.

  1. Put [nginx] under [.ebextensions]
  2. Put a file like [01_XXX.config] under [.ebextensions]

I tried these two for a long time, but I didn't say Eun or Sun, and even if I looked it up, I couldn't find any other method ... When I looked at the documentation during deployment, I found the above.

In the case of Java and Go, how to place it in [.ebextensions] is written, I think it's easy to get hooked on the article saying "Rails can do the same thing !!". (I was really into it.) -Increasing client_max_body_size in Nginx conf on AWS Elastic Beanstalk https://stackoverflow.com/questions/18908426/increasing-client-max-body-size-in-nginx-conf-on-aws-elastic-beanstalk

Recommended Posts

When nginx conf is not reflected well in AWS Elastic Beanstalk + Rails environment
rails AWS deployment is not reflected
[Rails] When the layout change of devise is not reflected
Exit code 1 occurs when Rails is stopped in Docker environment
Data is not registered in Rails.
[Rails] Annotate is not executed when migrating
[Docker] Use environment variables in Nginx conf
[Rails] About the error that the image is not displayed in the production environment
Image is not displayed in production environment
How to redirect to http-> https when SSL is enabled in Rails × Heroku environment
When the project is not displayed in eclipse
[Rails] Nginx, Puma environment deployment & server study [AWS EC2]
Regarding overcapacity when setting Rails tutorial environment in Cloud 9
Deploy to Ruby on Rails Elastic beanstalk (Environment construction)
[Error] The app is not displayed in the production environment
Fixed the phenomenon that vuetify built in Rails is not loaded when page transition is done
How to solve the problem when the value is not sent when the form is disabled in rails and sent
The story when the test folder was not created in Rails
Error in production environment (The asset "~" is not present in the asset pipeline.)
When [command not found: composer] is displayed when [composer install] is displayed in Laravel
Docker does not work when DOCKER_HOST is specified in WSL2
[Rails Tutorial Chapter 13] Flow when using S3 for image upload in production environment (use .env so as not to publish AWS key)