From 252b9b134cd6394dc1edbdd2be5220b365050f5f Mon Sep 17 00:00:00 2001 From: Michael Wunderlich Date: Mon, 18 Apr 2022 11:32:49 -0700 Subject: [PATCH] remove proxy config --- .ebextensions/nginx/nginx.conf | 55 ---------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 .ebextensions/nginx/nginx.conf diff --git a/.ebextensions/nginx/nginx.conf b/.ebextensions/nginx/nginx.conf deleted file mode 100644 index 3bde1a7..0000000 --- a/.ebextensions/nginx/nginx.conf +++ /dev/null @@ -1,55 +0,0 @@ -user nginx; -error_log /var/log/nginx/error.log warn; -pid /var/run/nginx.pid; -worker_processes auto; -worker_rlimit_nofile 33282; - -events { - worker_connections 1024; -} - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - log_format main '$remote_addr - $remote_user [$time_local] "$request" ' - '$status $body_bytes_sent "$http_referer" ' - '"$http_user_agent" "$http_x_forwarded_for"'; - - include conf.d/*.conf; - - map $http_upgrade $connection_upgrade { - default "upgrade"; - } - - server { - listen 80 default_server; - root /var/app/current/public; - - location / { - } - - location /api { - proxy_pass http://127.0.0.1:5000; - proxy_http_version 1.1; - - proxy_set_header Connection $connection_upgrade; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - } - - access_log /var/log/nginx/access.log main; - - client_header_timeout 60; - client_body_timeout 60; - keepalive_timeout 60; - gzip off; - gzip_comp_level 4; - - # Include the Elastic Beanstalk generated locations - include conf.d/elasticbeanstalk/01_static.conf; - include conf.d/elasticbeanstalk/healthd.conf; - } -}