Permalink
Browse files

Merge pull request #18 from shibayu36/server-arch

サーバアーキテクチャを変える
  • Loading branch information...
shibayu36 committed Sep 16, 2018
2 parents 24ca406 + 0d73394 commit f0756c967b95cd60837585e2ba190b452f3fab9b
Showing with 10 additions and 4 deletions.
  1. +7 −1 conf/nginx.conf
  2. +2 −2 sokkyou/sokkyou.sh
  3. +1 −1 webapp/env.sh
@@ -43,6 +43,12 @@ http {
#gzip on;
upstream app {
server 172.17.65.1:8080 fail_timeout=0;
server 172.17.65.2:8080 fail_timeout=0;
server 172.17.65.3:8080 fail_timeout=0;
}
server {
listen 80 default_server;
listen [::]:80 default_server;
@@ -59,7 +65,7 @@ http {
location / {
proxy_set_header Host $http_host;
proxy_pass http://127.0.0.1:8080;
proxy_pass http://app;
}
}
}
@@ -7,9 +7,9 @@ SLACK_WEBHOOK_URL=$SLACK_WEBHOOK_URL
REMOTE="isucon@isucon01"
REMOTE_LIST="isucon01 isucon02 isucon03"
BACKEND="isucon01 isucon02 isucon03"
BACKEND_APP="isucon01 isucon02"
BACKEND_APP="isucon01 isucon02 isucon03"
DB="isucon01"
NGINX="isucon01 isucon02 isucon03"
NGINX="isucon03"
function SLACK() {
curl -X POST --data-urlencode "payload={\"channel\": \"#ディメンジョナルハイソサイエティぬれねずみ\", \"username\": \"ぬれねずみ\", \"text\": \"$*\", \"icon_emoji\": \":mouse:\"}" $SLACK_WEBHOOK_URL
@@ -1,5 +1,5 @@
DB_DATABASE=torb
DB_HOST=127.0.0.1
DB_HOST=172.17.65.1
DB_PORT=3306
DB_USER=isucon
DB_PASS=isucon

0 comments on commit f0756c9

Please sign in to comment.