-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
89 lines (68 loc) · 2.2 KB
/
nginx.conf
File metadata and controls
89 lines (68 loc) · 2.2 KB
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
# /etc/nginx/nginx.conf
worker_processes auto;
events {
worker_connections 1024;
}
stream {
upstream rock_node_grpc_passthrough {
server rock-node:8090;
}
server {
listen 6790;
proxy_pass rock_node_grpc_passthrough;
proxy_connect_timeout 24h;
proxy_timeout 24h;
}
}
http {
client_max_body_size 32m;
upstream rock_node_grpc {
server rock-node:8090;
keepalive 32;
}
server {
listen 6791;
http2 on;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log info;
location /org.hiero.block.api.BlockStreamPublishService {
proxy_request_buffering off;
grpc_read_timeout 24h;
grpc_send_timeout 24h;
grpc_pass grpc://rock_node_grpc;
grpc_set_header X-Real-IP $remote_addr;
grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
grpc_set_header Host $host;
}
location /org.hiero.block.api.BlockStreamSubscribeService {
proxy_request_buffering off;
grpc_read_timeout 24h;
grpc_send_timeout 24h;
grpc_pass grpc://rock_node_grpc;
grpc_set_header X-Real-IP $remote_addr;
grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
grpc_set_header Host $host;
}
location /org.hiero.block.api.BlockNodeService {
proxy_request_buffering off;
grpc_read_timeout 24h;
grpc_send_timeout 24h;
grpc_pass grpc://rock_node_grpc;
grpc_set_header X-Real-IP $remote_addr;
grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
grpc_set_header Host $host;
}
location /org.hiero.block.api.BlockAccessService {
proxy_request_buffering off;
grpc_read_timeout 24h;
grpc_send_timeout 24h;
grpc_pass grpc://rock_node_grpc;
grpc_set_header X-Real-IP $remote_addr;
grpc_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
grpc_set_header Host $host;
}
location / {
return 404;
}
}
}