GithubHelp home page GithubHelp logo

infra-role-infura-proxy's Introduction

Description

Warning. This is archived role extracted from infra-misc. Project is obsolete and role is kept as an archive.

This role configures an Nginx proxy to for redirecting requests to ipfs.infura.io via a wildcard domain in order to silo cookies.

Details

The core of the work is done by the files/b32tob38.lua which is used by Nginx in order to convert the base32 hash in the domain into the base58 hash for the Infura URL.

For example:

Since IPFS addresses are static length we shouldn't see issues with padding.

The ceritificate is created using Let'sEncrypt and CertBot ran with a System timer.

Configuration

Only mandatory settings are:

certbot_cloudflare_api_token: 'this-is-your-secret-api-token'
certbot_domain: *.inura.example.org

Take not that the token has to be one with restricted access.

Links

Known Issues

  • If you specify a resolver config for Nginx it will break this proxy due to Nginx trying to use IPv6:
    • connect() to [IPv6addr]:443 failed (101: Network is unreachable) while connecting to upstream

infra-role-infura-proxy's People

Contributors

marudny avatar

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.