configuration.nix/hosts/rico0/services/apps/loki.nix

19 lines
460 B
Nix
Raw Normal View History

2024-07-21 14:19:08 +05:30
_: {
services = {
caddy = {
virtualHosts."loki.labs.adtya.xyz" = {
extraConfig = ''
reverse_proxy 127.0.0.1:3100
tls /persist/secrets/caddy/certs/default.crt /persist/secrets/caddy/certs/default.key
'';
};
};
loki = {
enable = true;
dataDir = "/mnt/data/loki";
2024-07-27 17:33:39 +05:30
configFile = ./loki-config.yaml;
2024-07-21 14:19:08 +05:30
};
};
systemd.services.loki.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
}