-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf
213 lines (169 loc) · 7.06 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types;
default_type application/octet-stream;
ssl_certificate /etc/nginx/ssl/hex7.com.crt;
ssl_certificate_key /etc/nginx/ssl/hex7.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
server {
listen 80;
server_name default_server;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name hex7.com www.hex7.com hex7.net www.hex7.net;
root /usr/share/nginx/html;
underscores_in_headers on;
location / {
proxy_pass http://localhost:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /robots.txt { return 200 "User-agent: *\nAllow: /\n"; }
location /nginx-health {
access_log off;
return 200 "healthy\n";
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
server {
listen 443 ssl;
server_name dev.hex7.com
root /usr/share/nginx/html;
underscores_in_headers on;
location / {
proxy_pass http://localhost:18000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /robots.txt { return 200 "User-agent: *\nAllow: /\n"; }
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
server {
listen 443 ssl;
server_name www.covid.hex7.com covid.hex7.com www.covid19.hex7.com covid19.hex7.com www.covid.hex7.net covid.hex7.net www.covid19.hex7.net covid19.hex7.net covid19usa.link www.covid19usa.link;
root /usr/share/nginx/html;
underscores_in_headers on;
location / {
proxy_pass http://localhost:8001;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /robots.txt { return 200 "User-agent: *\nAllow: /\n"; }
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
server {
listen 443 ssl;
server_name damnswank.com www.damnswank.com;
root /usr/share/nginx/html;
underscores_in_headers on;
access_log /var/log/nginx/damnswank_access.log;
location / {
proxy_pass http://localhost:8002;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /robots.txt { return 200 "User-agent: *\nAllow: /\n"; }
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
server {
listen 443 ssl;
server_name reimage.hex7.com www.reimage.hex7.com reimage.hex7.net www.reimage.hex7.net;
root /usr/share/nginx/html;
underscores_in_headers on;
access_log /var/log/nginx/reimage_access.log;
location / {
proxy_pass http://localhost:8003;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /robots.txt { return 200 "User-agent: *\nAllow: /\n"; }
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
server {
listen 443 ssl;
server_name hubble.hex7.com www.hubble.hex7.com hubble.hex7.net www.hubble.hex7.net hubbleshow.com www.hubbleshow.com;
root /usr/share/nginx/html;
underscores_in_headers on;
access_log /var/log/nginx/hubble_access.log;
location / {
proxy_pass http://localhost:8004;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /robots.txt { return 200 "User-agent: *\nAllow: /\n"; }
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
server {
listen 443 ssl;
server_name goodeats.hex7.com www.goodeats.hex7.com goodeats.hex7.net www.goodeats.hex7.net goodeats.link www.goodeats.link;
root /usr/share/nginx/html;
underscores_in_headers on;
access_log /var/log/nginx/goodeats_access.log;
location / {
proxy_pass http://localhost:8005;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /robots.txt { return 200 "User-agent: *\nAllow: /\n"; }
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
server {
listen 443 ssl;
server_name reart.hex7.com www.reart.hex7.com reart.hex7.net www.reart.hex7.net;
root /usr/share/nginx/html;
underscores_in_headers on;
access_log /var/log/nginx/reart_access.log;
location / {
proxy_pass http://localhost:8006;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /robots.txt { return 200 "User-agent: *\nAllow: /\n"; }
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
}