1.4 KiB
1.4 KiB
MailCow
Parameter
{
pkgs ? import <nixpkgs> {},
stateDir ? "/opt/mailcow-dockerized", # install target folder
ptr ? "mail.example.org", # PTR Resource Record https://www.cloudns.net/wiki/article/40/
timeZone ? "Europe/Berlin", # time zone
httpPort ? "80", # http port for mailcow website
httpBind ? "0.0.0.0", # http bind, e.g if you use a reverse proxy then you want that mailcow website us only listen to like 127.0.0.1
httpsPort ? "443", # https port for mailcow website
httpsBind ? "0.0.0.0", # https bind, e.g if you use a reverse proxy then you want that mailcow website us only listen to like 127.0.0.1
skipMailCowAcme ? false, # skip the acme container of mailcow e.g. you use a own one
nginxEnableACME ? true, # enable acme for nginx setting
nginxForceSSL ? true, # force ssl usage for nginx setting
nginxIsDefault ? true, # set mailcow virtual host as default host
gitUrl ? "https://github.com/mailcow/mailcow-dockerized.git", # mailcow clone url
gitRef ? "master" # git ref for init setup
}
Example
shell
nix-shell mailcow_nix-shell.nix --run configureMailCow
nix-shell mailcow_nix-shell.nix --run runMailCow
nix-shell mailcow_nix-shell.nix --run updateMailCow
build
nix-build mailcow_nix-build.nix
result/bin/configureMailCow
result/bin/runMailCow
result/bin/updateMailCow
nixos
see examples/mailcow_nixos.nix