+-+-+ +-+ +-+-+-+-+
|G|O| |4| |H|I|V|E|
+-+-+ +-+ +-+-+-+-+

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

SPK CDN setup step by step

BY: @vaultec | CREATED: Dec. 21, 2021, 1:06 a.m. | VOTES: 177 | PAYOUT: $567.73 | [ VOTE ]

Greetings everyone. In this tutorial I will be going over the steps involved in setting up a SPK CDN node.

Step 1

Choosing your hosting provider

You'll need to pick out a good server hosting provider for your node. A couple of factors to keep in mind: cost, popularity/how much traffic you are expecting, and how performant you want it to be.
I will be using Kimsufi as an example here. I've used it many times before and for the price/performance they offer they are almost unbeatable.

NOTE: I'd strongly recommend renting a server as the software makes assumptions that might not work for self hosting or an already existing server. Specifically, the auto provisioning of letsencrypt and nginx. For anyone who is not doing advanced stuff, renting a server is what you will want to do.

Kimsufi offers two different regions: France and Canada. I'd suggest picking which ever is geographically closest to you. If you are in Asia there are other more regional providers to pick from, but it should still work regardless. Keep in mind the cheapest hosting providers I've used are typically located in Canada/EU.

[IMAGE: https://i.imgur.com/KxZT2Md.png]
I am going to be picking the KS-16. It has a good processer, good ram and plenty of storage space. And of course for a cheap price of $23/month!

Step 2: Initial setup

Generally speaking the hosting provider you go with will handle the installation of the OS and provisioning any necessary services for you. Once that is complete you will need to login via ssh to install the CDN software.

For Kimsufi you should see an email similar to the one below

[IMAGE: https://i.imgur.com/p9OGszX.png]

You will use the above information to access the server. Most important things here are the username, IP address and link to retrieval your password. Make sure to make a safe copy of your server password as the link expires after a period of time.

Step 3a

Next up is actually logging in.
First you must open CMD (on windows), if you are on Linux I assume you are familiar with the terminal atleast a little bit ;)
You should see a prompt similar to this
[IMAGE: https://i.imgur.com/0nWJ22X.png]

Step 3b

Next type in your server's ssh info
[IMAGE: https://i.imgur.com/IIl9fc0.png]

NOTE: you need to replace the above IP address with the IP address of your server and retrieve the corresponding password from your hosting provider. In the case of Kimsufi the password can be retrieved from the email containing all the info about the server.

Step 3c

After that, press enter to login...
[IMAGE: https://i.imgur.com/TP9dUEQ.png]

Step 4

Now you're actually going to do something useful!
shell= bash <(curl -s https://raw.githubusercontent.com/3speaknetwork/cdn-daemon/main/scripts/install.sh)

Enter in the above command like shown in the image below, then press enter to initiate the installation. Note: this will install everything in the current folder. So whatever folder you are in a folder labeled "cdn-daemon" will show up after the installation is complete. For more advanced users you might want to run the install script in another folder more specific to your setup.
[IMAGE: https://i.imgur.com/JFx5MMv.png]

Quick run through of what the installation looks like in practice...

Finally, once finished, you should see something like this..

[IMAGE: https://i.imgur.com/chEwQWa.png]

You should be able to access your node from the url after hostname:

For example mine is https://bent-green-abandoned-salesclerk.gws.spk.domains

An example image served from my gateway. A random NFT that I "stole"https://bent-green-abandoned-salesclerk.gws.spk.domains/ipfs/bafybeiah66fate6uc37dugsrnegkzpjfoounmhnzuqxmfrbh6o6kbiqsqq
full url here

Available endpoints:
- /ipfs/ - standard ipfs endpoint for accessing files
- /ipns/ - standard ipfs endpoint for accessing ipns files
- /api - ipfs api endpoints
- /thumb/?res=WidthxHeight - image proxy/resizer (wip), currently doesn't work on my server

Final comments

If you do decide to setup a node, please comment below how it it went and what your domain name is.

Later on, I will be making a tutorial on how to update your cdn node once that becomes applicable. Another tutorial for earning rewards as well (once available)

Happy hacking! Cheers!

TAGS: [ #spknetwork ] [ #ipfs ]

Replies

@sanjeevm | Dec. 21, 2021, 5:38 p.m. | Votes: 3 | [ VOTE ]

What are the incentives ?

@frankbacon | Dec. 21, 2021, 8:04 p.m. | Votes: 2 | [ VOTE ]
@iliyan90 | Dec. 21, 2021, 9:19 p.m. | Votes: 0 | [ VOTE ]

@vaultec
Just the following question:
If I decide to rent a server in Bulgaria is that going to help the connection to the 3speak network?

Thanks in advance
Namaste πŸ™

@vaultec | Dec. 21, 2021, 10:57 p.m. | Votes: 5 | [ VOTE ]

> If I decide to rent a server in Bulgaria is that going to help the connection to the 3speak network?

Yes! Global coverage in as many locations as possible will definitely help improve the network.

@iliyan90 | Dec. 22, 2021, 5:54 a.m. | Votes: 0 | [ VOTE ]

Ok thank you πŸ™
So what should I look as a plan to rent and how hard that may be for someone like me with 0 knowledge about it…?

@vaultec | Dec. 22, 2021, 5:38 p.m. | Votes: 0 | [ VOTE ]

The plan on Kimsufi (KS-12) I mentioned above is more than enough for most people. I'd suggest something at or above 16gb of ram, 1-2tb of storage, and 100mbps or above internet connection. Also keep in mind price, you can shop around and get something for under $50/month that suits everything you'll need.

@iliyan90 | Dec. 22, 2021, 6:03 p.m. | Votes: 1 | [ VOTE ]

Got you…
Thank you πŸ™

@mrki-car | Dec. 21, 2021, 11:36 p.m. | Votes: 0 | [ VOTE ]

very nice

@hivebuzz | Dec. 22, 2021, 6:18 a.m. | Votes: 0 | [ VOTE ]

Congratulations @vaultec! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s):

You received more than 2500 upvotes.Your next target is to reach 2750 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out the last post from @hivebuzz:

Christmas Challenge - Offer a gift to to your friends

Support the HiveBuzz project. Vote for our proposal!
@evan955 | Dec. 22, 2021, 10:30 a.m. | Votes: 0 | [ VOTE ]

great work

@hivebuzz | Dec. 30, 2021, 11:47 p.m. | Votes: 0 | [ VOTE ]

Dear @vaultec,The current HiveBuzz proposal will expire in a few days.Do you mind supporting our proposal for 2022 so our team can continue its work next year?You can do it on Peakd, ecency, Hive.blog or using HiveSigner.https://peakd.com/me/proposals/199Thank you. We wish you a Happy New Year!

@diyhub | Nov. 15, 2022, 2:06 a.m. | Votes: 0 | [ VOTE ]
Thank you for your delegation!

We highly appreciate your support for the DIY scene on HIVE! You will now earn the curation rewards proportional to your delegation on a weekly basis. Feel free to get in contact with us if you have any question about the project.

Stay creative & HIVE ON!

@solorzanot | April 26, 2026, 7:48 p.m. | Votes: 0 | [ VOTE ]

excenlt post

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>