File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,18 @@ http {
14
14
15
15
client_max_body_size 0;
16
16
17
+ upstream backend {
18
+ server solana--mainnet--pyth.datahub.figment.io:443;
19
+ keepalive 4;
20
+ }
21
+
17
22
server {
18
23
listen 7900;
19
24
location / {
20
25
proxy_set_header Upgrade $http_upgrade;
21
26
proxy_set_header Connection "Upgrade";
22
- proxy_pass https://solana--mainnet.datahub.figment.io/apikey/YOUR_AUTH_TOKEN_HERE/;
27
+ proxy_pass https://backend/apikey/YOUR_AUTH_TOKEN_HERE/;
28
+ proxy_set_header Host solana--mainnet--pyth.datahub.figment.io;
23
29
}
24
30
}
25
31
28
34
location / {
29
35
proxy_http_version 1.1;
30
36
proxy_set_header Connection "";
31
- proxy_pass https://solana--mainnet.datahub.figment.io/apikey/YOUR_AUTH_TOKEN_HERE/;
37
+ proxy_pass https://backend/apikey/YOUR_AUTH_TOKEN_HERE/;
38
+ proxy_set_header Host solana--mainnet--pyth.datahub.figment.io;
32
39
}
33
40
}
34
41
}
You can’t perform that action at this time.
0 commit comments