A simple http service for handling .crypto domains
Go to file
2020-01-06 14:37:24 -05:00
images Added images 2020-01-06 13:52:41 -05:00
.envrc initial checkin 2020-01-03 15:00:44 -05:00
.gitignore initial checkin 2020-01-03 15:00:44 -05:00
chainlink.py Cloudflare was being too slow, changed to gateway.ipfs.io 2020-01-06 14:37:24 -05:00
LICENSE.txt Added MIT license text 2020-01-06 13:38:03 -05:00
README.md Hopefully fixed all the annoying formatting issues 2020-01-06 14:06:51 -05:00
requirements.txt fixed requirements for bottle 2020-01-03 20:19:10 -05:00

Chainlink

Chainlink is a utility that will run on a webserver to handle crypto-backed domain names Specifically this works with Unstoppable Domains This utilizes public IPFS gateways to display IPFS content, or will redirect to whatever the URL is set to in the Unstoppable Domain management.

Installation

To install this on your own server:

  1. Clone this repository
  2. Install the python dependancies via pip install -r requirements.txt
  3. Run the server with ./chainlink.py
  4. You can now hit the app at http://localhost:5000

Testing on a running instance

Assuming that it is running (I could be messing with it, or it might just be broken), you may try this without installing by going to https://chainlink.arachnitech.com/

URL Patterns

The general format is http://localhost:5000/{domain}/{action} where {domain} is a .crypto or .zil name registered with Unstoppable Domains and {action} can be

  • html - uses the IPFS hash set in Unstoppable Domains management
  • redir - uses the redirect_url set in Unstoppable Domains management
  • raw - displays an HTML table view of the full JSON returned from Unstoppable Domains API

The default action is "html", so if you don't specify anything it will attempt to use that field.

Browser Search Engine

I added a browser search engine for each of the UD domains (.zil and .crypto) so that, when I type .crypto domain The browser will automatically redirect based on the output from my chainlink script.

The settings to make that work for .crypto is:

.crypto search registration

It's basically the same for .zil:

.crypto search registration