diff --git a/chainlink.py b/chainlink.py index 896ac28..86f663b 100755 --- a/chainlink.py +++ b/chainlink.py @@ -15,16 +15,18 @@ def root(): host = request.get_header('host') helptext = f"""
General format is {host}/<domain>/<action> -
If If <action> is blank, it will attempt to use the redirect
You may also/optionally specify an action which can be any of the following
+ raw
Show the raw json (formatted as an html table)
+ html
Hit the IPFS hash via cloudflare-ipfs.com
@@ -69,4 +71,4 @@ def redirectDomain(domain, action=None):
return json2html.json2html.convert(json = body)
if __name__ == "__main__":
- run(app, host='localhost', port='5000', reloader=True)
+ run(app, host='0.0.0.0', port='5000', reloader=True)
diff --git a/requirements.txt b/requirements.txt
index a6d2d3a..106dbfc 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,6 +1,12 @@
+bottle==0.12.18
+certifi==2019.11.28
+chardet==3.0.4
Click==7.0
-Flask==1.1.1
+idna==2.8
itsdangerous==1.1.0
Jinja2==2.10.3
+json2html==1.3.0
MarkupSafe==1.1.1
+requests==2.22.0
+urllib3==1.25.7
Werkzeug==0.16.0
redir
Use the redirect parameter and just return a 302 redirect to whatever is set