command
module
Version:
v0.0.0-...-bc5e478
Opens a new window with list of versions in this module.
Published: Dec 27, 2021
License: MIT
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
geth-proxy
Reverse Proxy for geth node
gcr.io/moonrhythm-containers/geth-proxy

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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.