Skip to main content

Services needed

  • Redis
  • Postgresql
  • A resend account or any SMTP provider for emailing
  • Maxmind country and city dbs ( they are free to download )

Backend

Malak’s backend runs with very minimal hardware requirements by itself, you really need as little as 512MB ram amongst others. For production, we strongly recommend Linux but it should work across Windows and macOS too
We offer white glove self-hosting services. Shoot us an email at [email protected]
At the very minimum, this needs to be in your .env or your .yml config file but if using .env, it should look like below:
You can generate you aes_gcm key with LC_ALL=C tr -dc 'A-Za-z0-9' </dev/urandom | head -c 32; echo
Download the maxmind country db and city db then use their path
There are way more options but you can find other options

Running

Prerequisites:

Kubernetes

VPS, bare metal

To run the actual server, you need the following command:
Systemd service
You can use this sample Systemd configuration to run the service.

Docker

You can view the latest docker images here You can verify with gh attestation verify oci://ghcr.io/ayinke-llc/malak:{TAG} --owner ayinke-llc --predicate-type https://in-toto.io/attestation/release/v0.1

Plans

You need to have atleast one plan in your plans table. There are two ways to do this:
  • malak plans create
  • Import this sample sql into your database. Github gist
After this, make sure to update the billing default reference to this

Frontend

It is a NextJS app so it can be Installable anywhere such as Vercel and others. Source is on Github and installable from there

Configuration

Deck viewer

Docs are available here