diff --git a/config/nginx/nginx.conf b/config/nginx/nginx.conf index d0012b6..f57e62c 100644 --- a/config/nginx/nginx.conf +++ b/config/nginx/nginx.conf @@ -1,28 +1,21 @@ -# upstream resumai { -# server web:8000; -# } - - +upstream resumai { + server web:8000; +} server { listen 80; location / { - resolver 10.0.0.2 valid=10s; -# set $target "http://api.resumai.kr"; -# proxy_pass $target; - set $elb_dns resumai-lb-1519038453.ap-northeast-2.elb.amazonaws.com; - proxy_pass $elb_dns - + proxy_pass http://resumai; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_redirect off; -# proxy_connect_timeout 300s; -# proxy_send_timeout 300s; -# proxy_read_timeout 300s; -# send_timeout 300s; + proxy_connect_timeout 300s; + proxy_send_timeout 300s; + proxy_read_timeout 300s; + send_timeout 300s; } location /static/ {