Upgraded both Steem Load Balancer Nodes to Latest (2026-01-15)

in #steem4 days ago

Passing headers to downstream

Latest PR merged: Passing headers to downstream
Docker hub image updated: https://hub.docker.com/r/justyy/steem-load-balancer/tags

image.png

Quick start to setup a Steem Load Balancer Node

Setup SSL

Assuming you have SSL certificates. You can get one via https://github.com/acmesh-official/acme.sh

Pull the Image

docker pull justyy/steem-load-balancer

Create config.yaml

nodes:
  - "https://api2.justyy.com"
  - "https://api.justyy.com"
  - "https://api.steemit.com"
  - "https://api.steemitdev.com"
  - "https://api.pennsif.net"
  - "https://api.moecki.online"
  - "https://steemapi.boylikegirl.club"
rateLimit:
  windowMs: 10000
  maxRequests: 600
headers:
  "https://api.justyy.com":
    "X-Edge-Key": "${X_EDGE_KEY}"
  "https://api2.justyy.com":
    "X-Edge-Key": "${X_EDGE_KEY}"
version: "${STEEM_LB_VERSION}"
max_age: 3
logging: true
max_payload_size: "5mb"
max_jussi_number_diff: 500
min_blockchain_version: "0.23.0"
logging_max_body_len: 100
retry_count: 3
user_agent: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36"
sslCertPath: "${SSL_CERT_PATH}"
sslKeyPath: "${SSL_KEY_PATH}"
rejectUnauthorized: false
timeout: 2000
port: 9091
plimit: 5
cache:
  enabled: true
  ttl: 3
debug: false
firstK: 2
strategy: "max_jussi_number"  # options: first, random, max_jussi_number, latest_version

Create start.sh

#!/bin/bash
#
STEEM_LB_PORT=443
RETRY_COUNT=3

### change the following as needed
SSL_CERT_PATH=/root/.acme.sh/steem.justyy.com_ecc/fullchain.cer
SSL_KEY_PATH=/root/.acme.sh/steem.justyy.com_ecc/steem.justyy.com.key
X_EDGE_KEY=SECRET_KEY
STEEM_LB_VERSION=`date +%F`

docker stop steem-load-balancer || true
docker rm steem-load-balancer || true

docker run \
    -e NODE_ENV=production \
    -e SSL_CERT_PATH=$SSL_CERT_PATH \
    -e SSL_KEY_PATH=$SSL_KEY_PATH \
    -e STEEM_LB_VERSION=$STEEM_LB_VERSION \
    -e X_EDGE_KEY=$X_EDGE_KEY \
    --name steem-load-balancer \
    --restart on-failure:$RETRY_COUNT \
    -p $STEEM_LB_PORT:9091 \
    -v /root/.acme.sh/:/root/.acme.sh/ \
    -v `pwd`/config.yaml:/app/config.yaml \
    justyy/steem-load-balancer:latest

Run

chmod +x start.sh
./start.sh

Steem to the Moon🚀!

Support me, thank you!

Why you should vote me? My contributions
Please vote me as a witness or set me as a proxy via https://steemitwallet.com/~witnesses

image.png

Sort:  

Great post! Featured in the hot section by @punicwax.