Skip to content

Commit 52b48b1

Browse files
authored
add example nginx for figment (#50)
1 parent 28913f2 commit 52b48b1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

doc/example-nginx-figment.conf

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
worker_processes 1;
2+
3+
events {}
4+
5+
http {
6+
include /etc/nginx/mime.types;
7+
8+
rewrite_log on;
9+
10+
keepalive_requests 2147483647; # int32 max
11+
12+
client_max_body_size 0;
13+
14+
server {
15+
listen 7900;
16+
location / {
17+
proxy_set_header Upgrade $http_upgrade;
18+
proxy_set_header Connection "Upgrade";
19+
proxy_pass https://solana--mainnet.datahub.figment.io/apikey/YOUR_AUTH_TOKEN_HERE/;
20+
}
21+
}
22+
server {
23+
listen 7899;
24+
location / {
25+
proxy_http_version 1.1;
26+
proxy_set_header Connection "";
27+
proxy_pass https://solana--mainnet.datahub.figment.io/apikey/YOUR_AUTH_TOKEN_HERE/;
28+
}
29+
}
30+
}

0 commit comments

Comments
 (0)