/web3proxy

A minimalistic web3 authenticated proxy

Primary LanguageGoGNU General Public License v3.0GPL-3.0

web3proxy

Go Report Card Build Status Docker Status

A minimalistic web3 authenticated proxy, alla infura.

Usage

web3proxy <https_url> <web3_url>

where

  • https_url is the url to publish the web3 endpoint
  • web3_url is where the http web3 is located

for instance web3proxy https://web3.myhost.com/authentication_token http://localhost:8545

web3proxy will auto generate the TLS server certificate using https://letsencrypt.org

To debug set the environment variable DEBUG=1

Docker

Just exec with docker run -p 443:443 adria0/web3proxy <https_url> <web3_url>

If you want to cache the creation of the certificate (e.g. development environments where everything is re-created from scratch) you can map the certificates folder with -v <path_to_your_certificates_cache>/cache-path:/cache-path