Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/24/20 in all areas

  1. The goal here is to setup 2 or more vps's to run IPFS in cluster mode. The IPFS daemons will stay in sync to distribute the files so its always up. Then use a typical domain name to serve the hash using Cloudflare gateway on Cloudflare's dashboard. From there a typical web browser sees your domain like usual, but behind the scenes can still use the IPFS Browser to directly see the website. create user denarius or whoever you want, but notice in the systemd files User=whoeveryoucreated adduser denarius usermod -aG sudo denarius exit If you are using ssh keys already ssh-copy-id [email protected] login ssh [email protected] install ipfs (Snapcraft), since snap might have to logout and back in after the sudo apt install snapd part. Mainly just wanted to show how to use snap IPFS daemon. https://snapcraft.io/ipfs sudo apt update sudo apt install snapd sudo snap install ipfs ipfs version ipfs init systemd service sudo nano /etc/systemd/system/ipfs.service [Unit] Description=IPFS daemon After=network.target [Service] ### Uncomment the following line for custom ipfs datastore location # Environment=IPFS_PATH=/path/to/your/ipfs/datastore User=denarius ExecStart=/snap/bin/ipfs daemon Restart=always [Install] WantedBy=multi-user.target sudo systemctl restart ipfs sudo systemctl status ipfs sudo systemctl enable ipfs install ipfs cluster ctl https://dist.ipfs.io/#ipfs-cluster-ctl wget https://dist.ipfs.io/ipfs-cluster-ctl/v0.13.0/ipfs-cluster-ctl_v0.13.0_linux-amd64.tar.gz tar -xzvf ipfs-cluster-ctl_v0.13.0_linux-amd64.tar.gz cd ipfs-cluster-ctl sudo cp ipfs-cluster-ctl /usr/local/bin/ install ipfs cluster service https://dist.ipfs.io/#ipfs-cluster-service wget https://dist.ipfs.io/ipfs-cluster-service/v0.13.0/ipfs-cluster-service_v0.13.0_linux-amd64.tar.gz tar -xzvf ipfs-cluster-service_v0.13.0_linux-amd64.tar.gz cd ipfs-cluster-service sudo cp ipfs-cluster-service /usr/local/bin/ initialize ipfs cluster ipfs-cluster-service init the secret to use across all the clusters is in ~/.ipfs-cluster/service.json example a2e2f791d26a04e76cbea370696964614a574a4265593aeaf4 systemd service sudo nano /etc/systemd/system/ipfsc.service [Unit] Description=IPFS Cluster daemon After=network.target [Service] ### Uncomment the following line for custom ipfs datastore location # Environment=IPFS_PATH=/path/to/your/ipfs/datastore User=denarius ExecStart=/usr/local/bin/ipfs-cluster-service daemon Restart=always [Install] WantedBy=multi-user.target Start, Status and Enable service sudo systemctl restart ipfsc sudo systemctl status ipfsc sudo systemctl enable ipfsc in status look for a line like this, this will be your bootstrap for the other nodes in the cluster /ip4/23.94.107.170/tcp/9096/p2p/12D3KooWL6FJgyiY3BUMx8PXpqCK3B6Qcn6X5dPPtGvgAaB7gTxW how bootstrap looks in systemd on the helpers sudo nano /etc/systemd/system/ipfsc.service [Unit] Description=IPFS Cluster daemon After=network.target [Service] ### Uncomment the following line for custom ipfs datastore location # Environment=IPFS_PATH=/path/to/your/ipfs/datastore User=denarius ExecStart=/usr/local/bin/ipfs-cluster-service daemon --bootstrap /ip4/23.94.107.170/tcp/9096/p2p/12D3KooWL6FJgyiY3BUMx8PXpqCK3B6Qcn6X5dPPtGvgAaB7gTxW Restart=always [Install] WantedBy=multi-user.target then to pin we use ipfs-cluster-ctl ipfs-cluster-ctl peers ls Add some random example file. Like nano example.txt, "this is a test" ipfs-cluster-ctl add example.txt ipfs-cluster-ctl pin ls now go to, to add the newly created hash directly to cloudflare to serve through their gateway. I see a 50mb limit on files, so be aware of this if making a website. https://www.cloudflare.com/distributed-web-gateway/ Add the CNAME and TXT Record like below Then back on the cloudflare link above, input your domain name, and Submit. Now you have an instant website serving using the Cloudflare IPFS gateway and a cluster of IPFS daemons keeping the files in sync. The website will also stay fully decentralized using IPFS directly because of that initial cluster we setup above. An example which I am not going to keep up forever. But wanted to show how this looks across different browsers and URLs. Just remember no nginx proxy pass is being used in this guide. ipfs-cluster-ctl add -r ~/website which gave me a hash of QmSrrb571Gm1RLvxHePEMXfuzjTG1nbCNb5PrZutJLde5L spread between the cluster Some Examples then in Brave Nightly as an example I can type ipfs://QmSrrb571Gm1RLvxHePEMXfuzjTG1nbCNb5PrZutJLde5L Which since directly seems slow, and still learning how this works, appears like this. This is how same page looks using Firefox with IPFS Companion, going directly through the hash And how a typical user would see in Chrome going directly to denarius.guide
    1 point
  2. Amazing guide @buzzkillb! A list of public IPFS gateways is available here also: https://ipfs.github.io/public-gateway-checker/
    1 point
  3. 1 point
  4. XRP price dropped to as low as $0.2138 on Binance as three key factors pushed the cryptocurrency down. View the full original article
    1 point
  5. The price of XRP has been in a tailspin since news broke that the Securities and Exchange Commission would sue Ripple for conducting an initial coin offering of the digital asset. In the wake of the suit, which Ripple has described as an affront to the entire cryptocurrency market, a number of firms have begun cutting services tied to XRP, which Ripple has tried for years to get banks to adopt. The suit was released just a day before SEC chairman Jay Clayton announced he would resign. Now, a former commissioner of the regulator is crying foul, describing the suit as unprecedented, given the upcoming change in power among the SEC's top ranks and presidential administration next month. In a letter to Clayton obtained by The Block, former SEC commissioner Joseph Grundfest said: "no pressing reason compels immediate enforcement action." Grundfest declined to comment further but confirmed the veracity of the letter. A representative of Ripple, who also declined to comment on the letter, said Grundfest is an unpaid advisor for the firm. "The views of a soon-incoming Administration and Congress as to the regulation of transactions similar to those at issue can differ substantially from current perspectives," Grundfest wrote. The SEC claims that the sale and issuance of XRP was an unregistered security offering that gave Ripple co-founders Brad Garlinghouse and Chris Larson "the most control" over XRP. Grundfest, who was appointed as SEC commissioner by Ronald Reagan, said the enforcement action could have a negative impact on holders of XRP, who, in his view, are “innocent third-parties.” "But simply initiating the action will impose substantial harm on innocent holders of XRP, regardless of the ultimate resolution," he wrote. "Upon learning of the proceeding, intermediaries will cease transacting in XRP because of the associated legal risk. The resulting reduction in liquidity will cause XRP’s value to decline." As The Block reported earlier Wednesday, a number of market makers have cut off liquidity support for XRP. And rumors are swirling that Coinbase could cut support of XRP in some capacity. That would result in an "unprecedented" scenario of billions of dollars of losses resulting from the exodus of intermediary market service providers. From the letter: "I am aware of no instance in which the simple announcement of a Commission enforcement proceeding has, absent allegations of fraud, misrepresentation, or omission, caused multi-billion-dollar losses to innocent third parties. Creating precedent, and imposing losses, of this sort raises public policy concerns that would benefit from the views of an incoming administration." He went on to say that XRP and ether should be subject to the same treatment given that the agency has not illustrated a "material distinction between the operation of Ether and of XRP that is relevant to the application of the federal securities laws." "Imposing securities law obligations on XRP while leaving Ether untouched raises fundamental fairness questions about the exercise of Commission discretion." At last check, XRP was trading down more than 39% since news of the suit dropped. © 2020 The Block Crypto, Inc. All Rights Reserved. This article is provided for informational purposes only. It is not offered or intended to be used as legal, tax, investment, financial, or other advice. View the full original article
    1 point
×
×
  • Create New...