Awesome Open Source
Awesome Open Source

OpenBSD self-hosted

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


  1. This script assumes you are running a fresh OpenBSD system on a public server (e.g., a VPS).
  2. You must have a domain name pointing to your server's IP and subdomains (www, git, cloud, and mail).


  1. Self-hosting my most used services for privacy reasons.
  2. 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.

Web systems:

  • 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 && ./

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.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
shell (10,409
git (817
cloud (504
email (308
self-hosted (222
shell-script (106
openbsd (57
self-hosting (24