Major refactor of fortress config

This commit is contained in:
Lauren Lagarde 2025-08-03 18:10:24 -05:00
parent 74929a0aa6
commit 72d51d403a
5 changed files with 239 additions and 226 deletions

View file

@ -0,0 +1,40 @@
{ ... }: {
users.groups.haproxy.gid = 99;
users.users.haproxy = {
uid = 99;
group = "haproxy";
};
sops.secrets = {
"dotspace/pki/lagarde.dev.pem" = {
mode = "0660";
owner = "haproxy";
group = "haproxy";
};
"dotspace/pki/mlaga97.space.pem" = {
mode = "0660";
owner = "haproxy";
group = "haproxy";
};
"dotspace/pki/bauble.boutique.pem" = {
mode = "0660";
owner = "haproxy";
group = "haproxy";
};
};
virtualisation.oci-containers.containers.haproxy = {
image = "haproxy:2.6-alpine";
ports = [
"80:80"
"443:443"
"8448:8448"
"9980:9980"
];
volumes = [
"/run/secrets/dotspace/pki:/certs"
"/home/lauren_lagarde/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg" # TODO
];
};
}