Promptautomation
Automated Ubuntu VPS Hardening: SSH, UFW, Caddy Auto-SSL, and PostgreSQL
Produces an idempotent bash provisioning script configuring SSH key-only access, UFW, fail2ban, Caddy web server, and hardened PostgreSQL.
Prompt template
1
2
3
4
5
6
7
8
9
10
You are a Senior Linux & Cloud Infrastructure Engineer. Author an idempotent bash provisioning script for an Ubuntu 24.04 VPS hosting **{{domain_name}}**.
**Target Parameters**
- Domain: {{domain_name}}
- SSL Contact Email: {{admin_email}}
**Required Hardening Steps**
1. **Base Security:** disable root password login, enforce SSH keys, configure UFW whitelist and fail2ban jails.
2. **Caddy Web Server:** create a Caddyfile with automatic HTTPS reverse proxying to Node.js port 3000.
3…
Copy the template, add your details, and paste the prompt into your chosen AI service.
Comments · 0
Nothing here yet
Sign in to participate