Skip to content

Commit

Permalink
update nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
yukukotani committed Sep 12, 2020
1 parent eb4712d commit 703e0c0
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions nginx.conf
Expand Up @@ -14,11 +14,7 @@ http {
include /etc/nginx/mime.types;
default_type application/octet-stream;

log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

access_log /var/log/nginx/access.log main;
access_log off;

sendfile on;
#tcp_nopush on;
Expand All @@ -27,11 +23,35 @@ http {

#gzip on;

upstream app {
server 10.160.85.101:8888 fail_timeout=0;
server 10.160.85.102:8888 fail_timeout=0;
server 10.160.85.103:8888 fail_timeout=0;
keepalive 16;
}

server {
root /home/isucon/isucon10-qualify/webapp/public;
listen 80 default_server;
listen [::]:80 default_server;

location /api {
proxy_pass http://app;
}

location /initialize {
proxy_pass http://app;
}

location / {
root /www/data;
}
}

server {
listen 8888 default_server;
listen [::]:8888 default_server;

location /api {
proxy_pass http://localhost:1323;
}
Expand Down

0 comments on commit 703e0c0

Please sign in to comment.