Skip to content

Commit 9f98d16

Browse files
committed
add example nginx config for triton1
1 parent 669ad9f commit 9f98d16

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

doc/example-nginx-triton1.conf

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# replace YOUR_NODE and YOUR_AUTH_TOKEN_HERE
2+
# docker run -v /path/to/nginx-triton1.conf:/etc/nginx/nginx.conf:ro -p 7899:7899 -p 7900:7900 -d docker.io/nginx
3+
4+
worker_processes 1;
5+
6+
events {}
7+
8+
http {
9+
include /etc/nginx/mime.types;
10+
11+
rewrite_log on;
12+
13+
keepalive_requests 2147483647; # int32 max
14+
15+
client_max_body_size 0;
16+
17+
server {
18+
listen 7900;
19+
location / {
20+
proxy_set_header Upgrade $http_upgrade;
21+
proxy_set_header Connection "Upgrade";
22+
proxy_pass https://YOUR_NODE.rpcpool.com/YOUR_AUTH_TOKEN_HERE/;
23+
}
24+
}
25+
server {
26+
listen 7899;
27+
location / {
28+
proxy_http_version 1.1;
29+
proxy_set_header Connection "";
30+
proxy_pass https://YOUR_NODE.rpcpool.com/YOUR_AUTH_TOKEN_HERE/;
31+
}
32+
}
33+
}

0 commit comments

Comments
 (0)