31 lines
702 B
Nix
31 lines
702 B
Nix
{config, ...}: {
|
|
services.plausible = {
|
|
enable = true;
|
|
server = {
|
|
baseUrl = "https://plausible.cronyakatsuki.xyz";
|
|
secretKeybaseFile = "${config.age.secrets.plausible.path}";
|
|
};
|
|
};
|
|
|
|
services.traefik.dynamicConfigOptions.http = {
|
|
services.plausible.loadBalancer.servers = [
|
|
{
|
|
url = "http://localhost:8000";
|
|
}
|
|
];
|
|
|
|
routers.plausible = {
|
|
rule = "Host(`plausible.cronyakatsuki.xyz`)";
|
|
tls = {
|
|
certResolver = "porkbun";
|
|
};
|
|
service = "plausible";
|
|
entrypoints = "websecure";
|
|
};
|
|
};
|
|
|
|
services.restic.backups = {
|
|
local.paths = ["/var/lib/plausible"];
|
|
server.paths = ["/var/lib/plausible"];
|
|
};
|
|
}
|