-
Notifications
You must be signed in to change notification settings - Fork 1
/
alone.conf
48 lines (45 loc) · 1.34 KB
/
alone.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
server {
listen 31302 proxy_protocol so_keepalive=on http2;
server_name domain_kamu;
real_ip_header proxy_protocol;
real_ip_recursive on;
location /trojangrpc {
if ($request_method != "POST") {
return 404;
}
client_body_buffer_size 1m;
client_body_timeout 1h;
client_max_body_size 0;
grpc_pass grpc://127.0.0.1:31501;
grpc_read_timeout 1h;
grpc_send_timeout 1h;
grpc_set_header X-Real-IP $proxy_protocol_addr;
grpc_set_header X-Forwarded-For $proxy_protocol_addr;
}
location /vlessgrpc {
if ($request_method != "POST") {
return 404;
}
client_body_buffer_size 1m;
client_body_timeout 1h;
client_max_body_size 0;
grpc_pass grpc://127.0.0.1:31502;
grpc_read_timeout 1h;
grpc_send_timeout 1h;
grpc_set_header X-Real-IP $proxy_protocol_addr;
grpc_set_header X-Forwarded-For $proxy_protocol_addr;
}
location /vmessgrpc {
if ($request_method != "POST") {
return 404;
}
client_body_buffer_size 1m;
client_body_timeout 1h;
client_max_body_size 0;
grpc_pass grpc://127.0.0.1:31503;
grpc_read_timeout 1h;
grpc_send_timeout 1h;
grpc_set_header X-Real-IP $proxy_protocol_addr;
grpc_set_header X-Forwarded-For $proxy_protocol_addr;
}
}