Nginx Custom Config in Elastic BeanStalk Docker Plateform

0

I'm using EB Env with Docker Platform to Deploy my NodeJS Application as Nginx Proxy With Immutable Deployment Pattern. I got errors related to large files upload, timeout etc. Now i want to overrides the configs for the Nginx.

I'v created the .platform/nginx/conf.d/proxy.conf in the root of the project of NestJS with the conent;

client_max_body_size 100M;

How I deploy;

  • Build docker image on github actions
  • Push the Image on ECR, and Update the Dockerrun.aws.json with latest URL of ECR repo
  • Trigger EB Deployment using Dockerrun.aws.json

Now when i connect to the new Instance Created after deployment, I go to /etc/nginx/conf.d/elasticbeanstalk and i can't see the proxy.conf file there, not event the config i applied in any of the nginx config.

$ tree
.
├── conf.d
│   ├── elasticbeanstalk
│   │   └── healthd.conf
│   ├── elasticbeanstalk-nginx-docker-upstream.conf
│   └── healthd_logformat.conf
├── default.d
├── fastcgi.conf
├── fastcgi.conf.default
├── fastcgi_params
├── fastcgi_params.default
├── koi-utf
├── koi-win
├── mime.types
├── mime.types.default
├── nginx.conf
├── nginx.conf.default
├── scgi_params
├── scgi_params.default
├── uwsgi_params
├── uwsgi_params.default
└── win-utf

What I'm doing wrong here.

已提問 1 年前檢視次數 131 次
沒有答案

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南