Permalink
Browse files

isu2/icons -> isu1 routing

  • Loading branch information...
sorah committed Oct 22, 2017
1 parent fae2d21 commit 2f230c2a9be68fb095ec038a07bafd4b0ebef597
Showing with 16 additions and 8 deletions.
  1. +16 −8 nginx.conf
View
@@ -56,6 +56,10 @@ http {
server unix:/run/isubata/puma.sock fail_timeout=0;
}
upstream isuone {
server isu1:8080 fail_timeout=0;
keepalive 128;
}
upstream isutwo {
server isu2:8080 fail_timeout=0;
keepalive 128;
@@ -74,6 +78,12 @@ http {
location / {
proxy_pass http://app;
}
location /icons {
add_header Cache-Control "public, max-age=86400";
root /home/isucon/public;
}
}
server {
@@ -97,22 +107,20 @@ http {
}
location /icons {
try_files $uri @isuone;
add_header Cache-Control "public, max-age=86400";
root /home/isucon/public;
}
location @isuone {
add_header Via "isuone";
proxy_pass http://isuone;
}
location /profile {
proxy_pass http://app;
proxy_pass http://isuone;
}
location / {
proxy_pass http://isutwo;
}
try_files $uri @isuda;
location @app{
proxy_pass http://app;
}
}
}

0 comments on commit 2f230c2

Please sign in to comment.