Skip to content

Commit c3d5479

Browse files
committed
add keepalive
1 parent 3edb2c1 commit c3d5479

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

doc/example-nginx-triton1.conf

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,27 @@ http {
1414

1515
client_max_body_size 0;
1616

17+
upstream backend {
18+
server YOUR_NODE.rpcpool.com:443;
19+
keepalive 4;
20+
}
21+
1722
server {
1823
listen 7900;
1924
location / {
2025
proxy_set_header Upgrade $http_upgrade;
2126
proxy_set_header Connection "Upgrade";
22-
proxy_pass https://YOUR_NODE.rpcpool.com/YOUR_AUTH_TOKEN_HERE/;
27+
proxy_pass https://backend/YOUR_AUTH_TOKEN_HERE/;
28+
proxy_set_header Host YOUR_NODE.rpcpool.com;
2329
}
2430
}
2531
server {
2632
listen 7899;
2733
location / {
2834
proxy_http_version 1.1;
2935
proxy_set_header Connection "";
30-
proxy_pass https://YOUR_NODE.rpcpool.com/YOUR_AUTH_TOKEN_HERE/;
36+
proxy_pass https://backend/YOUR_AUTH_TOKEN_HERE/;
37+
proxy_set_header Host YOUR_NODE.rpcpool.com;
3138
}
3239
}
3340
}

0 commit comments

Comments
 (0)