This repository was archived by the owner on Jan 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathisupipe.conf
More file actions
108 lines (88 loc) · 2.35 KB
/
Copy pathisupipe.conf
File metadata and controls
108 lines (88 loc) · 2.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
server {
listen 80 default_server;
server_name _;
index index.html index.htm index.nginx-debian.html;
root /var/www/html;
location / {
try_files $uri $uri/ =404;
}
}
server {
listen 443 ssl default_server;
server_name _;
index index.html index.htm index.nginx-debian.html;
root /var/www/html;
# bot避けのためのvhostで、この証明書は有効期限がきれています
ssl_certificate /etc/nginx/tls/_.t.isucon.dev.crt;
ssl_certificate_key /etc/nginx/tls/_.t.isucon.dev.key;
ssl_protocols TLSv1.3;
ssl_prefer_server_ciphers off;
location / {
try_files $uri $uri/ =404;
}
}
upstream app {
keepalive 256;
server 192.168.0.11:8080 weight=10;
}
upstream another_app {
keepalive 256;
# server 192.168.0.13:8080;
server 192.168.0.12:8080;
}
server {
listen 443 ssl;
server_name u.isucon.dev;
server_name *.u.isucon.dev;
ssl_certificate /etc/nginx/tls/_.u.isucon.dev.crt;
ssl_certificate_key /etc/nginx/tls/_.u.isucon.dev.key;
ssl_protocols TLSv1.3;
ssl_prefer_server_ciphers off;
client_max_body_size 10m;
root /home/isucon/webapp/public/;
location / {
try_files $uri /index.html;
}
location /api {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://app;
}
location = /api/tag {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://another_app;
}
location = /api/payment {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://another_app;
}
location ~ /api/livestream/([^/]+)/enter {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://another_app;
}
location ~ /api/livestream/([^/]+)/ngwords {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://another_app;
}
location ~ /api/livestream/([^/]+)/moderate {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://another_app;
}
location ~ /api/livestream/([^/]+)/exit {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_pass http://another_app;
}
}