geth-proxy

command module
v0.0.0-...-bc5e478 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 27, 2021 License: MIT Imports: 16 Imported by: 0

README

geth-proxy

Reverse Proxy for geth node

gcr.io/moonrhythm-containers/geth-proxy

Overview

Features

  • Health check base on last synced block timestamp
  • Merge websocket port with http port

Config

Flag Type Description Default
-addr string HTTP listening address :80
-tls.addr string HTTPS listening address :443
-tls.key string TLS private key file
-tls.cert stirng TLS certificate file
-geth.addr string Geth address 127.0.0.1
-geth.http string Geth http port 8545
-geth.ws string Geth websocket port 8546
-geth.metrics string Geth metrics port 6060
-geth.block-unit duration Block timestamp unit 1s
-geth.healthy-duration duration Duration from last block that mark as healthy 1m

Running

Docker
#!/bin/bash
NAME=geth-proxy
IMAGE=gcr.io/moonrhythm-containers/geth-proxy
TAG=latest
ARGS="-geth.healthy-duration=15s"

docker pull $IMAGE:$TAG
docker stop $NAME
docker rm $NAME
docker run -d --restart=always --name=$NAME --net=host \
  --log-opt max-size=10m \
  $IMAGE:$TAG $ARGS

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL