Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 31 additions & 6 deletions doc/example-nginx-triton1.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,53 @@ http {

client_max_body_size 0;

upstream backend {
server YOUR_NODE.rpcpool.com:443;
# Pythnet, listening on ports 7799:7800
upstream pythnet_backend {
server YOUR_PYTHNET_NODE.rpcpool.com:443;
keepalive 4;
}
server {
listen 7800;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass https://pythnet_backend/YOUR_PYTHNET_AUTH_TOKEN_HERE/;
proxy_set_header Host YOUR_PYTHNET_NODE.rpcpool.com;
}
}
server {
listen 7799;
location / {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass https://pythnet_backend/YOUR_PYTHNET_AUTH_TOKEN_HERE/;
proxy_set_header Host YOUR_PYTHNET_NODE.rpcpool.com;
}
}

# Solana Mainnet, listening on ports 7899:7900
upstream mainnet_backend {
server YOUR_MAINNET_NODE.rpcpool.com:443;
keepalive 4;
}
server {
listen 7900;
location / {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass https://backend/YOUR_AUTH_TOKEN_HERE/;
proxy_set_header Host YOUR_NODE.rpcpool.com;
proxy_pass https://mainnet_backend/YOUR_MAINNET_AUTH_TOKEN_HERE/;
proxy_set_header Host YOUR_MAINNET_NODE.rpcpool.com;
}
}
server {
listen 7899;
location / {
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_pass https://backend/YOUR_AUTH_TOKEN_HERE/;
proxy_set_header Host YOUR_NODE.rpcpool.com;
proxy_pass https://mainnet_backend/YOUR_MAINNET_AUTH_TOKEN_HERE/;
proxy_set_header Host YOUR_MAINNET_NODE.rpcpool.com;
}
}
}