Codegea

Development

Custom software developmentSystems, platforms and integrations built around your operationCorporate websitesProfessional, fast and built to inspire trustOnline storesCatalog, payments and shipping ready to sell 24/7WooCommerceFast WooCommerce stores with each country’s payments and invoicingLanding pagesA page focused on one goal: turning visitors into customersMobile appsCustom iOS and Android apps that put your business in your customers’ pockets

Integration and CMS

CMS integrationsWordPress, Strapi, Directus and Arc XP connected to your whole ecosystemArc XPSupport, implementation and integrations for the media platformMigrationsMigrate your site, platform or database without losing anything

Growth and infrastructure

AI automationTechnology does the repetitive work and your team focuses on what mattersOn-page SEOBe found and recommended by Google: technical and content optimizationServers & hostingFast, secure servers monitored 24/7
RetainerYour dev team, by the monthFrom 20h a month. Fixed fee.
An AI quoting tool to quote services in minutesProfessional quotes in minutes, with projects, sellers and payments tracked in one place.See the case

By type

EcommerceStores and catalogsCorporate sitesBrand and lead genPlatforms & appsCustom software

Explore

All projectsCases and resultsClientsWho trusts usRetainerMonthly dev team

Blog

All articlesGuides and opinionNewsletterOne email a monthContactWe reply in 24h

Latest articles

Integrating Piano, Cxense and Google Ad Manager with Arc XPCMS · 2026-10-13How to migrate from WordPress to Arc XP without losing SEOCMS · 2026-10-13Arc XP vs WordPress for a digital media outlet: when to make the jumpCMS · 2026-10-13
NewsletterJoin our newsletterPractical web, SEO and AI notes.
ServicesCustom software developmentCorporate websitesOnline storesWooCommerceLanding pagesMobile appsCMS integrationsArc XPMigrationsAI automationOn-page SEOServers & hostingYour dev team, by the month
ProjectsProfessional quotes in minutes, with projects, sellers and payments tracked in one place.EcommerceCorporate sitesPlatforms & appsAll projectsClientsRetainer
Retainer
BlogAll articlesNewsletterContactIntegrating Piano, Cxense and Google Ad Manager with Arc XPHow to migrate from WordPress to Arc XP without losing SEOArc XP vs WordPress for a digital media outlet: when to make the jumpJoin our newsletter
ESEN
Let's talk

Servers

Setting up SSL, backups and a firewall on your server

How to set up SSL, backups and a firewall on your VPS step by step: a free Let's Encrypt certificate, UFW and automatic backups for a secure server.

Derian Pinto · Founder & Full Stack Developer2026-06-272 min
Setting up SSL, backups and a firewall on your server

Having your own server is freedom, but it is also responsibility. Three things separate a well-kept VPS from an accident waiting to happen: the SSL certificate, backups and the firewall. They are not optional or for "later": they are the foundation everything else rests on. And the good news is that getting them ready takes less than you think.

SSL protects your visitors, backups protect you and the firewall keeps out whoever should not get in. All three, always.

SSL: encrypt traffic, and it is free

An SSL certificate enables HTTPS: it encrypts what travels between the browser and your server, shows the trust padlock and is a requirement both for SEO and for browsers not to flag your site as "not secure". With Let's Encrypt it is free and renews itself.

# Install Certbot and issue the certificate for Nginx
sudo apt install certbot python3-certbot-nginx -y
sudo certbot --nginx -d mydomain.com -d www.mydomain.com

Firewall: close the doors you do not use

A firewall defines which ports are open. The golden rule: close everything and open only what is necessary, usually SSH and web traffic. On Ubuntu, UFW makes it simple.

# Allow SSH and web traffic, and enable the firewall
sudo ufw allow OpenSSH
sudo ufw allow 'Nginx Full'
sudo ufw enable

Backups: your safety net

A backup that does not exist the day you need it is the most expensive mistake of all. Three rules: make them automatic, store them outside the server (in another location) and test them, because a backup you never restored is not a backup, it is an illusion. A simple script and a daily cron are enough to start.

#!/bin/bash
# Daily backup of files and database
date=$(date +%F)
tar -czf /backups/site-$date.tar.gz /var/www/mydomain
mysqldump mydb | gzip > /backups/db-$date.sql.gz

Minimum checklist

Area

Bare minimum

SSL

HTTPS active and automatic renewal

Firewall

Only SSH and web open

Backups

Daily, off-site and tested

Access

SSH with a key, not a password; no direct root login

Updates

System and software up to date

This is the foundation, but a healthy server is maintained over time: I detailed it in the monthly VPS server maintenance checklist. And remember that security and performance go together; also review your performance optimization.

Order matters, and so does restoring

On a new VPS the order is always the same: first the firewall, because it is better to close before you expose; then SSH with a key and no password; then SSL; and finally automatic backups to another place. It seems like a detail, but it keeps the server from being open, even for a few minutes, while you configure it.

Of the three, the backup is the only one you do not notice until it fails. So it is not enough that it runs: every quarter restore a copy on another server and open the site. If you cannot bring it up from the backup, you do not have a backup, you have files.

A compromised server or a dying disk is solved with a recent, tested copy. Without it, it is solved with a lost weekend.


Do you have a VPS and are not sure it is properly protected? At Codegea we set up SSL, firewall and automatic backups, and maintain your server so you can sleep well. Write to me and let's secure it.

Share this article?LinkedInWhatsAppX

Written by

Derian Pinto

Founder & Full Stack Developer

Founder of Codegea. Builds custom websites, stores and platforms, and integrates and supports Arc XP for media companies.

Join our newsletter

An email with news and practical web, SEO and AI notes. No spam, unsubscribe anytime.

Shall we build your project?

Need help? Chat with us