Skip to content

Latest commit

 

History

History
26 lines (22 loc) · 1.48 KB

cloud-deploy.md

File metadata and controls

26 lines (22 loc) · 1.48 KB

Deploy LiberaForms on NixOS in DigitalOcean

This repository contains a Nix flake for easily deploying an instance of LiberaForms to a public NixOS VM using the deploy-rs tool.

The default/tested config is for Digital Ocean (DO), but in theory it could be deployed to any virtualization platform supported by NixOS.

  1. Build a custom image for DO from the nixos-unstable branch, upload it through their web interface, and then use it to create a new droplet (VM).
  2. Configure a DNS A record to point to the IP address of the new VM and then confirm that you can login as root at your domain, for example ssh [email protected].
  3. Clone this repo git clone https://github.com/ngi-nix/liberaforms-flake to your local system running Nix with flakes enabled.
  4. Modify the flake.nix file to fill in the required configs (hostname, domain, email).
  5. Run the deployment nix run github:serokell/deploy-rs .#liberaforms-x86_64-linux.

You should now have a new instance of LiberaForms running on your domain and can follow the instructions on bootstrapping a first Admin user. For more information, see the container page.