File tree Expand file tree Collapse file tree 2 files changed +48
-6
lines changed Expand file tree Collapse file tree 2 files changed +48
-6
lines changed Original file line number Diff line number Diff line change
1
+ # replace YOUR_NODE and YOUR_AUTH_TOKEN_HERE
2
+ # docker run -v /path/to/nginx-blockdaemon.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
+ upstream bdnodes {
18
+ server YOUR_NODE.bdnodes.net:443;
19
+ server YOUR_NODE.bdnodes.net:443;
20
+ server YOUR_NODE.bdnodes.net:443;
21
+ }
22
+
23
+ server {
24
+ listen 7900;
25
+ location / {
26
+ proxy_set_header Upgrade $http_upgrade;
27
+ proxy_set_header Connection "Upgrade";
28
+ proxy_set_header Authorization "Bearer YOUR_AUTH_TOKEN_HERE";
29
+ proxy_pass https://bdnodes/websocket;
30
+ }
31
+ }
32
+ server {
33
+ listen 7899;
34
+ location / {
35
+ proxy_http_version 1.1;
36
+ proxy_set_header Connection "";
37
+ proxy_set_header Authorization "Bearer YOUR_AUTH_TOKEN_HERE";
38
+ proxy_pass https://bdnodes/;
39
+ }
40
+ }
41
+ }
Original file line number Diff line number Diff line change @@ -17,17 +17,18 @@ http {
17
17
server {
18
18
listen 7900;
19
19
location / {
20
- proxy_set_header Upgrade $http_upgrade;
21
- proxy_set_header Connection "Upgrade";
22
- proxy_pass https://solana--mainnet.datahub.figment.io/apikey/YOUR_AUTH_TOKEN_HERE/;
20
+ proxy_set_header Upgrade $http_upgrade;
21
+ proxy_set_header Connection "Upgrade";
22
+ proxy_pass https://solana--mainnet.datahub.figment.io/apikey/YOUR_AUTH_TOKEN_HERE/;
23
23
}
24
24
}
25
+
25
26
server {
26
27
listen 7899;
27
28
location / {
28
- proxy_http_version 1.1;
29
- proxy_set_header Connection "";
30
- proxy_pass https://solana--mainnet.datahub.figment.io/apikey/YOUR_AUTH_TOKEN_HERE/;
29
+ proxy_http_version 1.1;
30
+ proxy_set_header Connection "";
31
+ proxy_pass https://solana--mainnet.datahub.figment.io/apikey/YOUR_AUTH_TOKEN_HERE/;
31
32
}
32
33
}
33
34
}
You can’t perform that action at this time.
0 commit comments