Free Webhosting for your Handshake TLD, no account required. Just sign.
source link: https://github.com/realrasengan/dnslive-webhost
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
dnslive webhosting
Quick and simple web hosting for your Handshake Naming System Top Level Domain Zone
Simply provide a signature of the file you wish to upload signed by the address associated with the domain/tld.
You can use DNS Live Free DNS Hosting to host your tld zone. You will need to set your IP to: 45.33.66.56 for your TLD (@ IN A 45.33.66.56).
This should not be used for production quality websites/DNS but is great for personal use!
*** If you have a handshake resolver setup, visit http://ix/ which is hosted using dnslive-cli at the DNS level and hosted using dnslive-webhost at the web level. ***
Install
git clone https://github.com/realrasengan/dnslive-webhost cd dnslive-webhost npm install request
Use
node dnslive-webhost.js domain publichtml/path/to/file signature-of-file
Example of full commands to get up and going (assumes Bob Wallet by Kyokan )
- Copy the address that owns the domain to a temporary textfile/notepad.
- Get your API key from Bob Wallet (Settings -> copy HSD API Key to a temporary textfile/notepad)
- Download hs-client
git clone https://github.com/handshake-org/hs-client
- Once downloaded, type
cd hs-client npm install --production
- Then, type:
cd bin
- Type this in to select the proper wallet in Bob.
./hsw-rpc selectwallet allison --api-key=APIKEY_FROM_HSD
-
Type this command and save the signature result -- you'll need it for the final update, it is a signature. Note: The below signmessage command is currently not working, but a PR has been submitted to hsd PR 393, hsd
. Advanced users can use the
hsd-rpc signmessagewithprivkey
function after getting the associated private key with./hsw-cli dump
. Everyone else, I apologize, but its best to wait until the fix is merged to avoid risking your private key.
./hsw-rpc signmessage ADDRESS_THAT_OWNS_DOMAIN `node /path/to/dnslive-webhost/dnslive-filetobase64.js publichtml/path/to/file` --api-key=<API KEY from step 2>
- Go to the /path/to/dnslive-webhost directory
node dnslive-webhost.js <domain> <publichtml/path/to/file> <signature from step 7>
- Done.
A more straight forward example
Assumes you have 2 folders at the same level, hs-client and dnslive-webhost (i.e., installed them in same folder):
cd hs-client/bin ./hsw-rpc selectwallet allison --api-key=APIKEY_FROM_HSD ./hsw-rpc signmessage ADDRESS_THAT_OWNS_DOMAIN `node ../../dnslive-webhost/dnslive-filetobase64.js publichtml/path/to/file` --api-key=APIKEY_FROM_HSD
SIGNATUREOUTPUT
cd ../../dnslive-webhost node dnslive-webhost.js DOMAIN publichtml/PATH/TO/FILE SIGNATUREOUTPUT
Copyright
Copyright (c) 2020 The Handshake Community
MIT Licensed.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK