18 lines
460 B
Nix
18 lines
460 B
Nix
_: {
|
|
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";
|
|
configFile = ./loki-config.yaml;
|
|
};
|
|
};
|
|
systemd.services.loki.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
|
}
|