Skip to content

Commit

Permalink
Merge pull request #20 from shibayu36/initialize-to-01
Browse files Browse the repository at this point in the history
initializeを01固定で向ける
  • Loading branch information
shibayu36 committed Sep 16, 2018
2 parents b280ea6 + d2e78f4 commit 2ee0b1c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions conf/nginx.conf
Expand Up @@ -43,6 +43,18 @@ http {

#gzip on;

upstream isucon1 {
server 172.17.65.1:8080 fail_timeout=0;
}

upstream isucon2 {
server 172.17.65.2:8080 fail_timeout=0;
}

upstream isucon3 {
server 172.17.65.3:8080 fail_timeout=0;
}

upstream app {
server 172.17.65.1:8080 fail_timeout=0;
server 172.17.65.2:8080 fail_timeout=0;
Expand All @@ -63,6 +75,11 @@ http {
location /js/ { }
location /css/ { }

location /initialize {
proxy_set_header Host $http_host;
proxy_pass http://isucon1;
}

location / {
proxy_set_header Host $http_host;
proxy_pass http://app;
Expand Down

0 comments on commit 2ee0b1c

Please sign in to comment.