2024-07-21 14:19:08 +05:30
|
|
|
_: {
|
|
|
|
services = {
|
|
|
|
caddy = {
|
|
|
|
virtualHosts."loki.labs.adtya.xyz" = {
|
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy 127.0.0.1:3100
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
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" ];
|
|
|
|
}
|