File tree Expand file tree Collapse file tree 1 file changed +25
-5
lines changed
Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,7 @@ http {
1414 include /etc/nginx/mime.types ;
1515 default_type application/octet-stream ;
1616
17- log_format main '$remote_addr - $remote_user [$time_local] "$request" '
18- '$status $body_bytes_sent "$http_referer" '
19- '"$http_user_agent" "$http_x_forwarded_for"' ;
20-
21- access_log /var/log/nginx/access.log main;
17+ access_log off;
2218
2319 sendfile on;
2420 #tcp_nopush on;
@@ -27,11 +23,35 @@ http {
2723
2824 #gzip on;
2925
26+ upstream app {
27+ server 10.160.85.101:8888 fail_timeout=0;
28+ server 10.160.85.102:8888 fail_timeout=0;
29+ server 10.160.85.103:8888 fail_timeout=0;
30+ keepalive 16 ;
31+ }
32+
3033 server {
3134 root /home/isucon/isucon10-qualify/webapp/public;
3235 listen 80 default_server;
3336 listen [::]:80 default_server;
3437
38+ location /api {
39+ proxy_pass http ://app;
40+ }
41+
42+ location /initialize {
43+ proxy_pass http ://app;
44+ }
45+
46+ location / {
47+ root /www/data;
48+ }
49+ }
50+
51+ server {
52+ listen 8888 default_server;
53+ listen [::]:8888 default_server;
54+
3555 location /api {
3656 proxy_pass http ://localhost:1323 ;
3757 }
You can’t perform that action at this time.
0 commit comments