Permalink
Browse files

keep-alive

  • Loading branch information...
sorah committed Oct 22, 2017
1 parent 4a13460 commit 4864e074a5e556e2a72919bd9fb82da9c2bc29ee
Showing with 8 additions and 2 deletions.
  1. +8 −2 nginx.conf
View
@@ -56,6 +56,11 @@ http {
server isu2:5000 fail_timeout=0;
}
upstream isutwo {
server isu2:8080 fail_timeout=0;
keepalive 128;
}
server {
listen 0.0.0.0:8080 default_server;
@@ -74,6 +79,7 @@ http {
server {
listen 0.0.0.0:80 default_server;
proxy_set_header Connection "";
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
@@ -91,11 +97,11 @@ http {
}
location /icons {
add_header Cache-Control "public, max-age=86400";
proxy_pass http://app;
proxy_pass http://isutwo;
}
location / {
proxy_pass http://app;
proxy_pass http://isutwo;
}

0 comments on commit 4864e07

Please sign in to comment.