Files
hearth/nixos/system/hectic-lab/attic.nix
T
2026-06-05 12:42:55 +00:00

27 lines
532 B
Nix

{
domain,
...
}: {
config,
...
}: {
hectic.services.attic = {
enable = true;
hostName = "cache.${domain}";
environmentFile = config.sops.secrets."atticd/environment".path;
storage = {
bucket = "cache-hectic-lab";
endpoint = "https://hel1.your-objectstorage.com";
region = "hel1";
};
};
services.nginx.virtualHosts."cache.${domain}" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://127.0.0.1:8080";
};
};
}