← Main Home πŸš‘ Brisbane Emergency Computer Knowledge Base
$80 Diagnostic (Inside Repair Fee) β€’ $0 Call-Out β€’ Same-Day Repairs Across Brisbane
Home > Guides > DevOps & Web Security
DevOps & Web Security ⏱️ 12 min read β€’ Published Nov 2026

How to Choose a VPS, Setup Coolify & Avoid Vibe Coding Nightmares

Mastering Self-Hosted Cloud Infrastructure & Safe Vibe Coding

Moving from expensive managed platforms (Vercel, Heroku, AWS) to a self-hosted Hostinger KVM VPS running Coolify can cut your cloud hosting bills by 80% while giving you unlimited domains, databases, and Docker containers. However, pairing self-hosting with modern vibe coding requires strict security hygiene to avoid real-world disasters like $15,000 surprise API bills, database ransomware, and server suspensions.

1. How to Choose the Best VPS Server (Domain, Database, Emails)

A Virtual Private Server (VPS) gives you a dedicated slice of high-performance cloud hardware with root access. To run domains, databases, and Docker without lag, keep these parameters in mind:

Workload Minimum Specs Recommended Specs Why
Light (1–2 Static Sites + Caddy) 1 vCPU, 2GB RAM, 20GB NVMe 1 vCPU, 2GB RAM Minimal memory footprint
Coolify / Docker + PostgreSQL + Next.js 2 vCPU, 4GB RAM, 50GB NVMe 4 vCPU, 8GB RAM, 100GB NVMe Building Docker images spikes RAM; databases require memory caching
Heavy (Multi-Tenant, Redis, WordPress, Apps) 4 vCPU, 8GB RAM 4+ vCPU, 16GB RAM Prevents Linux OOM (Out-of-Memory) kernel crashes

The 4 Golden Rules for VPS Selection:

  1. Always Choose KVM Virtualization: Avoid older OpenVZ virtualization. KVM provides true hardware isolation and full kernel Docker support.
  2. Datacenter Proximity (Latency Matters): If your audience is in Brisbane or Australia, choose a datacenter in Sydney (15ms latency). Hosting in the US or Europe adds 180ms–250ms latency to every database query.
  3. NVMe SSD Storage (Not SATA): Databases (PostgreSQL, MySQL) perform thousands of input/output operations per second (IOPS). NVMe drives run 5x to 10x faster than standard SATA SSDs.
  4. The 'Hosting Your Own Email' Trap (Port 25):
    • Technician Reality: Do NOT host your primary business email on a raw VPS.
    • Most VPS providers (including Hostinger, Hetzner, DigitalOcean) block or heavily monitor Port 25 to prevent spam abuse. Furthermore, residential and budget VPS IP ranges are routinely blacklisted by Microsoft Outlook and Gmail spam filters.
    • Best Practice: Host your web apps and databases on your VPS, but route your domain's email through dedicated providers like Google Workspace, Zoho Mail, or a transactional relay like Resend, SendGrid, or Amazon SES.

2. How to Setup Coolify on Your Hostinger VPS

Coolify is an open-source, self-hosted platform (an open-source alternative to Vercel, Netlify, and Heroku). It allows you to connect GitHub repositories, spin up PostgreSQL/MySQL/Redis databases, manage free Let's Encrypt SSL certificates, and deploy apps using Docker with a single click.

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Hostinger VPS β”‚
β”‚ (Ubuntu 24.04 LTS) β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ Coolify Management Engine β”‚
β”‚ (Port 8000) β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ β”‚ β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Traefik Reverse Proxy β”‚ β”‚ PostgreSQL β”‚ β”‚ Next.js / Node β”‚
β”‚ (Auto SSL / Port 443) β”‚ β”‚ Database β”‚ β”‚ Container App β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Option A: Hostinger's 1-Click OS Template (Easiest)

  1. Log into your Hostinger hPanel > Go to VPS.
  2. Under Operating System, search for the Coolify (Ubuntu 24.04) pre-made image.
  3. Click Install. Hostinger automatically provisions Docker, Coolify, and firewall rules in under 3 minutes.

Option B: Manual CLI Installation on Clean Ubuntu 24.04

If installing on a standard Ubuntu server, connect via SSH using PowerShell or Terminal:

# 1. SSH into your Hostinger VPS
ssh root@YOUR_VPS_IP

# 2. Update system packages
apt update && apt upgrade -y

# 3. Run the official automated Coolify installation script
curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash

Post-Installation Setup:

  1. Open your browser and navigate to: http://YOUR_VPS_IP:8000.
  2. Register your administrator account.
  3. Point Your Domain to Coolify: In your DNS manager (Hostinger, Cloudflare, etc.), create an A Record:
    • Host: coolify (or @)
    • Points to: YOUR_VPS_IP
  4. In Coolify's settings, assign your domain (e.g. https://coolify.yourdomain.com). Coolify automatically provisions a free Let's Encrypt SSL certificate via its built-in Traefik reverse proxy.
  5. You can now click + Create New Resource to deploy Git repos, WordPress, or databases.

3. How to Create Free Email Aliases on Your Google Account

An alias lets you receive emails sent to multiple addresses (like info@, sales@, billing@) inside a single inbox without paying for additional user licenses.

Method 1: The Free Personal Gmail Trick (+ and .)

If using standard @gmail.com, Google provides built-in aliases:

  • The Plus Sign Trick: If your address is john@gmail.com, you automatically own john+banking@gmail.com, john+newsletters@gmail.com, and john+shopping@gmail.com.

    Why this is useful: Use john+banking@gmail.com when registering with your bank. In Gmail Settings > Filters and Blocked Addresses, set a rule: 'If to john+banking, apply label Banking and mark important'. If spam ever arrives addressed to that alias, you know a specific company leaked or sold your email!

  • The Dot Trick: j.ohn@gmail.com and jo.hn@gmail.com all route to john@gmail.com.

Method 2: Google Workspace (Custom Business Domain β€” Up to 30 Free Aliases per User)

If you pay for one Google Workspace account ($6/mo for admin@yourdomain.com):

  1. Go to the Google Admin Console (admin.google.com).
  2. Navigate to Directory > Users > Click your primary user.
  3. Under User information, click Add Alternate Emails (Email alias).
  4. Add up to 30 aliases for free: info@yourdomain.com, support@yourdomain.com, billing@yourdomain.com, contact@yourdomain.com.
  5. Click Save. All mail sent to those addresses lands in your main inbox.
  6. To reply as that alias: In Gmail > Settings > Accounts and Import > Send mail as > Add the alias address.

Method 3: Cloudflare Email Routing to Free Personal Gmail (100% Free Custom Domain Email)

If you have a domain and don't want to pay Google Workspace fees:

  1. Move your domain DNS to Cloudflare (Free).
  2. Go to Email Routing > Enable Email Routing.
  3. Create custom addresses: e.g. hello@yourdomain.com -> forwards to yourname@gmail.com.
  4. Cloudflare delivers incoming business emails to your free Gmail inbox with zero monthly cost.

4. Is It Safe to Create Websites with 'Vibe Coding'?

'Vibe coding' (coined by AI researchers like Andrej Karpathy) describes building applications by iteratively prompting LLMs to write all the code, accepting the output based on visual and functional vibes without reading or understanding every line of syntax.

The Verdict:

  • Static Websites, Landing Pages & Portfolios: VERY SAFE & HIGHLY EFFECTIVE. For HTML, CSS, JavaScript animations, landing pages, and marketing sites, vibe coding is transformative. There are no databases or server backdoors to breach.
  • Full-Stack Apps, User Authentication & Payment Systems: HAZARDOUS WITHOUT SECURITY REVIEWS. AI models are trained on internet code repositories, which include millions of insecure code snippets.

Common Security Bugs AI Introduces in Vibe-Coded Apps:

Vibe Coding Trap What the AI Commonly Writes The Disaster It Causes
Hardcoded Credentials const key = "sk-proj-948194..." written directly in frontend JS Scraped by bots within 90 seconds of pushing to GitHub; thousands billed
IDOR (Broken Authorization) /api/invoices?id=1284 fetches invoice without session check Any user can change 1284 to 1285 and read another customer's invoice
Unsanitized SQL / NoSQL db.query(`SELECT * FROM users WHERE user = '${input}'`) SQL Injection wipes or leaks the entire database table
No Rate Limiting Open /api/generate-ai endpoint accessible to the public Attackers script automated loops, draining your OpenAI API credits

5. What Is the Worst Nightmare If You Don't Follow These Steps?

If security best practices are ignored while running a VPS, managing domains, or deploying vibe-coded apps, here are the real-world scenarios:

Nightmare 1: The $15,000 API & Cloud Billing Shock Overnight

  • How it happens: You vibe-code a web tool that calls an AI or cloud API. The AI places the secret key in your .env or client file. You push the repository to GitHub as 'public', or you fail to put a rate-limiter on your backend endpoint.
  • The consequence: Automated bots scrape GitHub within seconds. They consume your API quota, spin up large cloud instances, and run up thousands of dollars before you wake up.

Nightmare 2: Automated Database Ransomware Wipes

  • How it happens: You deploy PostgreSQL or MongoDB on your VPS. You map port 5432 or 27017 to 0.0.0.0 (open to the entire public internet) using a weak password or default configuration.
  • The consequence: Automated port scanners detect the open database within hours. A bot script connects, drops every table, exports your data, and leaves behind a single table named: README_TO_RECOVER_YOUR_DATA demanding 0.2 Bitcoin.

Nightmare 3: Your VPS Suspended as a 'Spambot / DDoS Zombie'

  • How it happens: You run an unpatched Docker container or misconfigured PHP script. Attackers exploit a known vulnerability, gain root access, install a botnet script, and use your VPS to blast 800,000 spam emails per hour.
  • The consequence: Spamhaus blacklists your server IP and your business domain. Hostinger's abuse team immediately suspends your VPS service to protect network reputation, taking down all your websites and client apps without warning.

Nightmare 4: Domain Reputation Destruction (DNS Spam Hell)

  • How it happens: You set up a VPS email server without configuring proper SPF (Sender Policy Framework), DKIM (DomainKeys Identified Mail), and DMARC (Domain-based Message Authentication) records.
  • The consequence: Spammers spoof your domain to send phishing emails. Within days, Google and Microsoft mark your domain as an untrusted spam source. Even legitimate invoices you email to clients go straight to their Junk folders.

The 5-Point Security Checklist for Your VPS & Vibe-Coded Projects:

  1. UFW Firewall on the VPS: Only leave ports 80 (HTTP), 443 (HTTPS), and your custom SSH port open. Never expose database ports (5432, 3306, 6379) to the public internetβ€”databases should communicate with Coolify apps internally over Docker's bridge network (127.0.0.1 or container names).
  2. Disable Root Password SSH: In /etc/ssh/sshd_config, set PasswordAuthentication no and log in exclusively using SSH Public Key Authentication.
  3. Set Hard Spending Limits: In your OpenAI, Anthropic, or AWS dashboards, configure strict monthly billing caps (e.g., maximum $50/month) so runaway loops can never bill surprise thousands.
  4. Audit Your Environment Variables: Never expose variables without a private prefix. Secrets belong exclusively in server-side runtime environments, never compiled into client-side browser bundles.
  5. 3-2-1 Automated Backups: Configure Coolify or your VPS to dump databases nightly to an offsite S3-compatible bucket (such as Cloudflare R2 or Backblaze B2).

Need Same-Day Computer Assistance in Brisbane?

Our mobile technician comes directly to your home or office with a fixed $80 diagnosis and $0 call-out fee.

πŸ“ž Call 0401 148 654 πŸ“‹ Book Mobile Visit

Frequently Asked Questions

Q. Why do developers choose Coolify over Vercel or Heroku?

Vercel and Heroku charge steep bandwidth fees and serverless execution markups as apps grow. Coolify gives you the exact same Git-push-to-deploy workflow on your own fixed-price VPS with zero per-user or bandwidth surcharges.

Q. Can I host multiple different domains and databases on one Hostinger VPS?

Yes! Coolify's built-in Traefik reverse proxy routes traffic for dozens of independent domain names and automatically manages separate SSL certificates for each site on a single VPS.

Q. What is the single most important security rule when vibe coding with AI?

Never put API keys or secrets in source code files, and always run authorization checks on database endpoints. Verify that a user actually owns the record they are trying to read or delete.