Spring Boot and ebextensions

后端 未结 5 1366
走了就别回头了
走了就别回头了 2021-02-20 11:54

I\'m trying to add an .ebextensions folder to the root level of my jar to be deployed to AWS elastic beanstalk.

My folder structure is:

main:
--src
--re         


        
5条回答
  •  后悔当初
    2021-02-20 12:39

    For all of you who might struggle with this. Have a directory in the root of your project that looks like this: .ebextentions/nginx/conf.d/proxy.conf In the proxy.conf file you place this client_max_body_size 50M; which does exactly that. Now when you upload your project to elastic beanstalk, what you do is you make a zipped folder, and then you copy your target folder and the .ebextensions directory into it this is called a source bundle. Now you can upload the zipped folder(bundle) to elastic beanstalk.

提交回复
热议问题