This is the script I use to deploy my self-hosted services on top of OpenBSD. You are free to use and modify it according to your needs. Contributions are also welcome!
Tested on OpenBSD 6.7
- This script assumes you are running a fresh OpenBSD system on a public server (e.g., a VPS).
- You must have a domain name pointing to your server's IP and subdomains (www, git, cloud, and mail).
- Self-hosting my most used services for privacy reasons.
- Being able to customize my setup and add more features whenever I want.
OpenBSD base system:
- acme-client(1): for managing Let's Encrypt certificates.
- httpd(8): nice and simple web server.
- smtpd(8): for managing mails.
- dovecot: for IMAP access.
- Git and cgit: for managing source code repositories.
- PHP: for running RainLoop and Nextcloud.
- PostgreSQL: data storage for Nextcloud.
- rspamd: spam filtering system.
- RainLoop: a nice UI for the email system.
- Nextcloud: a safe place for all your files.
Please remember to always check the source and not just run some random code on your machine.
Just run the following commands as root:
chmod +x setup.sh && ./setup.sh
You will be prompt for some basic information required for the configuration files.
What you will get after installation:
A fully functional self-hosted server for your git repositories, files, and mails.