-
Notifications
You must be signed in to change notification settings - Fork 33
/
nginx.conf
71 lines (57 loc) · 1.71 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
worker_processes auto;
events {
worker_connections 10000;
}
http {
server {
listen 80;
server_name bstats.org bstats.localhost;
# Compression
gzip on;
gzip_comp_level 6;
gzip_vary on;
gzip_types text/plain text/css application/json application/x-javascript application/javascript text/xml application/xml application/rss+xml text/javascript image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype;
location / {
proxy_pass http://bstats-legacy:3000;
proxy_pass_request_headers on;
}
location /submitData {
proxy_pass http://nginx-backend:3001/legacy/submitData;
proxy_pass_request_headers on;
}
location /api/v2/data {
proxy_pass http://nginx-backend:3001/data;
proxy_pass_request_headers on;
}
location ~* ^/api/v2/(.+) {
rewrite ^/api/v2/(.+) /$1 break;
proxy_pass http://nginx-backend:3001;
proxy_pass_request_headers on;
}
location /api-list {
proxy_pass http://nginx-backend:3001;
proxy_pass_request_headers on;
}
location /signatures {
proxy_pass http://nginx-backend:3001;
proxy_pass_request_headers on;
}
location /api/v1/plugins {
proxy_pass http://nginx-backend:3001/services;
proxy_pass_request_headers on;
}
location ~* ^/api/v1/plugins/(.+) {
rewrite ^/api/v1/plugins/(.+) /legacy/service/$1 break;
proxy_pass http://nginx-backend:3001;
proxy_pass_request_headers on;
}
}
server {
listen 80;
server_name test.bstats.org new.bstats.localhost;
location / {
proxy_pass http://bstats-web:3000;
proxy_pass_request_headers on;
}
}
}