stura-infra/hosts/redmine/default.nix
2026-02-27 21:38:41 +01:00

60 lines
1.3 KiB
Nix

{
config,
pkgs,
lib,
modulesPath,
...
}:
{
imports = [
"${modulesPath}/virtualisation/proxmox-lxc.nix"
];
system.stateVersion = "22.11";
networking = {
hostName = "pro";
domain = "htw.stura-dresden.de";
firewall.allowedTCPPorts = [
80
443
];
};
services = {
redmine = {
enable = true;
components.imagemagick = true;
components.minimagick_font_path = "${pkgs.liberation_ttf.outPath}/share/fonts/truetype/LiberationSans-Regular.ttf";
components.ghostscript = true;
settings.production.email_delivery = {
delivery_method = ":smtp";
smtp_settings = {
address = "mail.${config.networking.domain}";
port = 25;
};
};
};
nginx = {
enable = true;
logError = "/dev/null emerg";
appendHttpConfig = ''
access_log off;
'';
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts = {
"pro.htw.stura-dresden.de" = {
locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.redmine.port}";
};
forceSSL = true;
enableACME = true;
};
};
};
};
}