-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
106 lines (85 loc) · 2.44 KB
/
nginx.conf
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
worker_processes auto;
worker_rlimit_nofile 65535;
error_log /dev/stdout warn;
events {
multi_accept on;
worker_connections 4024;
}
http {
charset utf-8;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
log_not_found off;
types_hash_max_size 2048;
server_tokens off;
reset_timedout_connection on;
client_max_body_size 25M;
# MIME
include mime.types;
default_type application/octet-stream;
upstream puma_upstream { server localhost:3000; keepalive 32; }
upstream falcon_upstream { server localhost:3001; keepalive 32; }
upstream go_upstream { server localhost:4001; }
upstream go_k32_upstream { server localhost:4001; keepalive 32; }
upstream go_k96_upstream { server localhost:4001; keepalive 96; }
access_log off;
server {
listen 80;
server_name puma.localhost;
location / {
proxy_pass http://puma_upstream;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name falcon.localhost;
location / {
proxy_pass http://falcon_upstream;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name go.localhost;
location / {
proxy_pass http://go_upstream;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name go-k32.localhost;
location / {
proxy_pass http://go_k32_upstream;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name go-k96.localhost;
location / {
proxy_pass http://go_k96_upstream;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name hello.localhost;
location / {
return 200 'Hello World';
add_header Content-Type text/plain;
}
}
}