-
Notifications
You must be signed in to change notification settings - Fork 1
/
nginx-test.conf.in
74 lines (60 loc) · 1.82 KB
/
nginx-test.conf.in
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
#user html;
worker_processes 4;
daemon off;
master_process on;
@LOAD_MODULE@
events {
worker_connections 1024;
}
error_log /proc/self/fd/2;
http {
default_type application/octet-stream;
sendfile on;
types_hash_max_size 2048;
server_tokens off;
tcp_nodelay on;
keepalive_timeout 65;
tcp_nopush on;
gzip on;
server {
listen 10080;
server_name localhost;
root /var/www;
access_log off;
redirectionio on;
redirectionio_project_key 58056a48-664d-11e7-aeb0-0242ac130004;
redirectionio_add_rule_ids_header on;
redirectionio_pass agent:10301 min_conns=10 keep_conns=10 max_conns=1000 timeout=100;
redirectionio_set_header X-Host-Ter $host;
redirectionio_set_header X-Host-Ter-2 $host;
redirectionio_set_header X-Host-Ter-3 YOLOLOLO;
redirectionio_trusted_proxies "127.0.0.1,172.18.0.0/24";
location /noredirection {
redirectionio off;
}
location /nolog {
redirectionio_logs off;
}
location /force-value {
redirectionio_host myhost.com;
redirectionio_scheme https;
}
}
server {
listen 10081;
root /var/www;
access_log off;
redirectionio on;
redirectionio_project_key 58056a48-664d-11e7-aeb0-0242ac130004;
redirectionio_pass agent:10301;
redirectionio_set_header X-Host-Bis $host;
redirectionio_set_header X-Host-Bis-2 $host;
redirectionio_set_header X-Host-Bis-3 YOLOLOLO;
redirectionio_trusted_proxies "127.0.0.1,172.18.0.0/24";
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://backend;
}
}
}