Skip to content

blademaster-888/radiant-server-easy-setup

Repository files navigation

Docker Compose Radiant Electrumx server easy setup  

radiant-server-easy-setup

About   |   Technologies   |   Requirements   |   Usage   |   License   |   Author Donations Welcome   |  


🎯 About

Easy setup and run radiant node and electrumx server with certbot SSL using Docker Compose,Bash Scripts.

🚀 Technologies

The following tools were used in this project:

✅ Requirements

a linux based linux VPS like contabo is required in order to proceed with this guide.

It is recommended to select ubuntu 20.04 due to its LTS nature for long term support. So proceed with select 20.04 even if the next guide says 22.04. A contabo guide to purchasing a vps can be found by clicking here

You will need to find yourself a client application to talkl to the VPS you have purchased such as putty. Guide to install and use putty here

Once you have your VPS in place and connected using putty or any other client, you can proceed with connecting to your VPS by following this guide here .

docker and docker-compose is required to use this application

SAMPLE DOCKER|COMPOSE INSTALL GUIDES

To install docker (ubuntu 18.04 example)

docker

To install docker-compose (ubuntu 18.04 example)

docker-compose OR

To install docker (ubuntu 20.04 example)

docker

To install docker-compose (ubuntu 20.04 example)

docker-compose

Other requirements include basic knowledge of accessing to Ubuntu linux 18.04 or above and git. You may adapt this application to other linux systems but we will not be discussing them here. Windows and Mac Os is also not covered in this guide.

Open ports using ufw

Open ports 80,443,50022 using ufw

ufw allow 80/tcp && ufw allow 443/tcp && ufw allow 50022/tcp

🏁 Usage

Setting up the folders ready

Clone this project

git clone https://github.com/telostia/radiant-server-easy-setup

Access the project folder

cd radiant-server-easy-setup

Make a copy of .env

cp .env.sample .env

fill in your own values in .env file by using nano or any other text editor of your choice.

nano .env

sample edit:

rpcuser=bob
rpcpassword=bobrpcpassword
domain=bobdomain.com
email=bobdomain@domain.com
DAEMON_URL=http://bob:bobpassword123z@localhost:7332/
SSL_CERTFILE=/etc/letsencrypt/live/bobdomain.com/fullchain.pem
SSL_KEYFILE=/etc/letsencrypt/live/bobdomain.com/privkey.pem

fill in your own values in. to save file in nano, hold control and press x, then let go and press y and press enter

Obtain a let's encrypto live SSL certificate via certbot

(please note that if you have any network servers running like nginx, disable them now for e.g systemctl stop nginx. This script will require port 80 to be available so if you have failed once, you must delete the .certbot file generated after first use and then run the script again. this is very important. To remove .certbot file type: rm .certbot)

Run the certbot 1st time and follow instructions on screen. 2nd times onward can be used at least once a day. SSL certificates normally expires 3months(90days) so it's good practices to rerun this command once every week or month or if you're proficient in in crontab -e, u can set it to auto run the time frames you want.

bash run-certbot.sh

Running the radiant node and electrumx server

Once you have obtained an ssl certificate successfully via the above command, you may proceed to edit,build and start the application.

Make a copy of nginx/conf/app.conf

cp nginx/conf/app.conf.sample nginx/conf/app.conf
# edit the file in nginx. nginx/conf/app.conf via nano 
# find yourdomainname.com and fill in your domain, the same value you entered earlier in .env file. there should be 5 locations.

start your webserver(nginx), it will auto build and run for you in the background.

make nbuild

start your radiant node and electrumx server, it will auto build and run for you in the background.

make build

Hopefully everything goes well and now you have yourself your very own electrumx server!!!

if you want to see what's happening behind the scenes when you run the servers, type in journalctl -xe

Your server will now be able to access via photonic wallet, glyph miner or any future supporting apps. Use the following as sample as the address you need to paste in the apps:

https://yourdomain.com:50022/

or

wss://yourdomain.com:50022/

substitute "yourdomain.com" with your domain name and VOILA!

📝 License

Use whatever sections of this guide however you wish,however, radiant node and radiant electrumx has their own licenses.

Made with ❤️ by telostia

Donations Welcome

RXD(radiant): 1DUtNqt65f3DGGgUfnnsBBJpmnsG5PHsGj

or if you prefer other currencies :) thank you very much!

BTC(bitcoin): bc1q53gfuy3wggzzkxhg5n50szlml0rwz04cvr92jy

LTC(litecoin): ltc1qajzufae2krqp8w802aeser9cfsjw5sus3vy3sz

If you want to donate in another currency, send me a DM in discord. Cheers :)

 

Back to top

About

Easy setup and run radiant node and electrumx server with certbot SSL using Docker Compose,Bash Scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors