Code Monkey home page Code Monkey logo

gigaproxy's Introduction

GIGAPROXY - lightweight proxy which allows you to debug and test TEZOS API requests, without the need to install a tezos arhive node

Benefits:

- no need to install an archive node (https://mainnet.tezos.org.ua - GIGANODE cluster used as default)
- custom logs for debugging and testing
- log files can be used for further analysis / statistics
- it can easily be configured for a separate endpoint - on your own node or any other
- lightweight nginx proxy

Install docker-compose

$ sudo curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

$ sudo chmod +x /usr/local/bin/docker-compose

Clone repo

Use Makefile to start, stop, build, attach docker image

To build and start image:

$ make build

To stop image:

$ make stop

To start image:

$ make start

To attach image:

$ make attach

To check status:

$ make status

Logs

Logs located in ./logs/nginx catalog:

giga.proxy_access.log (access log)  
giga.proxy_error.log (error log)

Log format definition for debugging/testing purposes:

log_format upstr '$host "$time_local" $status $request_time $upstream_response_time $request_length $bytes_sent $remote_addr->$upstream_addr $request';

Usage:

By default proxy bind on localhost:80080:

$ curl localhost:8080/chains/main/blocks/head/context/contracts/tz1RaQMyWSExjoykpbA9Ga241WeMEGutXqLF

Log example:

mainnet.tezos.org.ua "19/Feb/2020:11:46:46 +0100" 200 0.100 0.100 - 152 444 109.252.2.236->94.130.161.135:8732 GET /chains/main/blocks/807107/context/contracts/tz1RWg4v4qwi3p1XjTxQ7gYRyQD7qPUZuaR7 HTTP/1.1

gigaproxy's People

Contributors

f3x avatar tezukr avatar

Watchers

 avatar  avatar

Forkers

f3x

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.