Major refactor of fortress config
This commit is contained in:
parent
74929a0aa6
commit
72d51d403a
5 changed files with 239 additions and 226 deletions
40
systems/fortress/haproxy.nix
Normal file
40
systems/fortress/haproxy.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue