Skip to content

PoC for automation of LE certs for Arweave TXs and proxying to an arweave gateway

Notifications You must be signed in to change notification settings

aidanok/arweave-dns-gateway

Repository files navigation

Arweave DNS Gateway

Quick PoC that allow people to register domain names with a TXT record and, have them automatically receive a cert with lets encrypt, and reverse proxies them to an Arweave gateway.

Dev Usage / Info

deploy somewhere, probably on the same machine as gateway.

follow express-greenlock instructions to setup a config, edit some of the source for hardcoded things like blockbin.xyz

Read code, make better, use a proper db, use nginx perhaps.

npm run start

User usage

Register a domain that will be served

curl -X POST -H "Content-Type: text/plain" --data "mycooldomain.com" https://api.blockbin.xyz/v0/add_domain

Setup DNS Records

  1. Set CNAME record for mycooldomain.com pointing to gw.blockbin.xyz or api.blockbin.xyz

  2. Set TXT record for arweavetx.mycooldomain.com to a TX ID

Go!

Navigate to https://mycooldomain.com, the first navigation may take some time as as an SSL cert is generated. The TX you set will be served under the secure origin of https://mycooldomain.com

About

PoC for automation of LE certs for Arweave TXs and proxying to an arweave gateway

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published