SSH into Your Machine: Use an SSH client to log into your server.
Frist, ensure that all packages are up to date. This can prevent security vulnerabilities.
Install Glances: An advanced system monitor for Linux.
Install Nginx: A high-performance web server and a reverse proxy, often used for load balancing.
Configure UFW Firewall for Nginx: Make sure Nginx can receive HTTP and HTTPS traffic.
Remove Existing Nginx Configuration:
Edit New Configuration: Use a text editor like nano to create a new configuration file.
Replace the contents with your load balancer configuration. You can use the Example Nginx config as a starting point.
Modify RPC/LCD/gRPC server entries and domain names as required.
Save and exit the editor (CTRL + X
, then Y
to confirm, and Enter
to save).
Test Nginx Configuration: Ensures your syntax is correct.
Enable and Start Nginx: This will make sure Nginx starts on boot and starts running immediately.
Install Certbot: This tool automates obtaining free SSL/TLS certificates from Let's Encrypt.
Obtain the SSL Certificate for your domain:
Finally, you can add a cronjob to crontab to enable auto-newing of the certificates: