Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MichaelTaylor3D/5f57c075278505cc8041992f2bb57a74 to your computer and use it in GitHub Desktop.
Save MichaelTaylor3D/5f57c075278505cc8041992f2bb57a74 to your computer and use it in GitHub Desktop.
Forward Chia RPC ports to remote node
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
# mainnet datalayer host
server {
listen 127.0.0.1:8562 ssl;
server_name localhost;
ssl_certificate certs/chia/mainnet/wallet/private_wallet.crt;
ssl_certificate_key certs/chia/mainnet/wallet/private_wallet.key;
location / {
proxy_pass https://192.168.86.250:8562;
proxy_ssl_certificate certs/chia/mainnet/wallet/private_wallet.crt;
proxy_ssl_certificate_key certs/chia/mainnet/wallet/private_wallet.key;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
# mainnet wallet host
server {
listen 127.0.0.1:9256 ssl;
server_name localhost;
ssl_certificate certs/chia/mainnet/wallet/private_wallet.crt;
ssl_certificate_key certs/chia/mainnet/wallet/private_wallet.key;
location / {
proxy_pass https://192.168.86.250:9256;
proxy_ssl_certificate certs/chia/mainnet/wallet/private_wallet.crt;
proxy_ssl_certificate_key certs/chia/mainnet/wallet/private_wallet.key;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
# mainnet full node host
server {
listen 127.0.0.1:8555 ssl;
server_name localhost;
ssl_certificate certs/chia/mainnet/wallet/private_wallet.crt;
ssl_certificate_key certs/chia/mainnet/wallet/private_wallet.key;
location / {
proxy_pass https://192.168.86.250:8555;
proxy_ssl_certificate certs/chia/mainnet/wallet/private_wallet.crt;
proxy_ssl_certificate_key certs/chia/mainnet/wallet/private_wallet.key;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
# testnet datalayer host
server {
listen 127.0.0.1:10562 ssl;
server_name localhost;
ssl_certificate certs/chia/testnet/wallet/private_wallet.crt;
ssl_certificate_key certs/chia/testnet/wallet/private_wallet.key;
location / {
proxy_pass https://192.168.86.250:10562;
proxy_ssl_certificate certs/chia/testnet/wallet/private_wallet.crt;
proxy_ssl_certificate_key certs/chia/testnet/wallet/private_wallet.key;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
# testnet wallet host
server {
listen 127.0.0.1:11256 ssl;
server_name localhost;
ssl_certificate certs/chia/testnet/wallet/private_wallet.crt;
ssl_certificate_key certs/chia/testnet/wallet/private_wallet.key;
location / {
proxy_pass https://192.168.86.250:11256;
proxy_ssl_certificate certs/chia/testnet/wallet/private_wallet.crt;
proxy_ssl_certificate_key certs/chia/testnet/wallet/private_wallet.key;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
# testnet full node host
server {
listen 127.0.0.1:10555 ssl;
server_name localhost;
ssl_certificate certs/chia/testnet/wallet/private_wallet.crt;
ssl_certificate_key certs/chia/testnet/wallet/private_wallet.key;
location / {
proxy_pass https://192.168.86.250:10555;
proxy_ssl_certificate certs/chia/testnet/wallet/private_wallet.crt;
proxy_ssl_certificate_key certs/chia/testnet/wallet/private_wallet.key;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment