2020-01-06 11:36:02 -05:00
|
|
|
Chainlink
|
|
|
|
=========
|
|
|
|
|
2020-01-06 11:46:27 -05:00
|
|
|
Chainlink is a utility that will run on a webserver to handle crypto-backed
|
|
|
|
domain names Specifically this works with
|
2020-01-06 11:45:29 -05:00
|
|
|
[Unstoppable Domains](https://unstoppabledomains.com)
|
|
|
|
This utilizes public IPFS gateways to display IPFS content, or will redirect to
|
|
|
|
whatever the URL is set to in the Unstoppable Domain management.
|
2020-01-06 11:36:02 -05:00
|
|
|
|
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
To install this on your own server:
|
|
|
|
|
2020-01-06 11:37:21 -05:00
|
|
|
1. Clone this repository
|
|
|
|
2. Install the python dependancies via `pip install -r requirements.txt`
|
|
|
|
3. Run the server with `./chainlink.py`
|
2020-01-06 11:45:29 -05:00
|
|
|
4. You can now hit the app at http://localhost:5000
|
2020-01-06 11:36:02 -05:00
|
|
|
|
|
|
|
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
|
2020-01-06 11:45:29 -05:00
|
|
|
https://chainlink.arachnitech.com/
|
|
|
|
|
|
|
|
URL Patterns
|
|
|
|
============
|
|
|
|
|
2020-01-06 11:55:30 -05:00
|
|
|
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
|
2020-01-06 11:45:29 -05:00
|
|
|
* 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.
|