I have researched and read through all their documentation and still can not find out why this is not working. So I want to just simply override the 00_elastic_beanstalk_proxy.conf file to my own nginx config. Here is what I have.
inside my app root folder I have .ebextensions/nginx.config
files:
"/tmp/deployment/config/#etc#nginx#conf.d#00_elastic_beanstalk_proxy.conf":
mode: "000755"
owner: root
group: root
content: |
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream nodejs {
server 127.0.0.1:8081;
keepalive 256;
}
server {
listen 8080;
location / {
proxy_pass http://nodejs;
proxy_set_header Connection "";
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
alias /var/app/currentclient/dist;
}
gzip on;
}
I added, committed and pushed the file. Then I ran a 'eb deploy' which it deployed successfully minus not running my nginx.config. Unless it actually is running it and I can not find it in any of the logs.
Am I missing something or what do I need to do to solve my end task? I simply just want to have my own nginx.config.
Aucun commentaire:
Enregistrer un commentaire