2024-10-27 18:36:30 +05:30
|
|
|
_:
|
2024-11-17 14:06:41 +05:30
|
|
|
let domainName = "loki.labs.adtya.xyz"; in {
|
2024-10-27 18:36:30 +05:30
|
|
|
services = {
|
|
|
|
caddy = {
|
|
|
|
virtualHosts."${domainName}" = {
|
|
|
|
extraConfig = ''
|
|
|
|
reverse_proxy 127.0.0.1:3100
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
loki = {
|
|
|
|
enable = true;
|
|
|
|
dataDir = "/mnt/data/loki";
|
|
|
|
configFile = ./loki-config.yaml;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
systemd.services.loki.unitConfig.RequiresMountsFor = [ "/mnt/data" ];
|
|
|
|
}
|