Skip to content

isabella232/infra-role-infura-proxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 78.6%
  • Jinja 21.4%