mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
25 lines
762 B
Nix
25 lines
762 B
Nix
{config, ...}: {
|
|
sops.secrets = {
|
|
umami-secret = {
|
|
mode = "0600";
|
|
};
|
|
};
|
|
services.umami = {
|
|
enable = true;
|
|
settings = {
|
|
PORT = 8097;
|
|
APP_SECRET_FILE = config.sops.secrets.umami-secret.path;
|
|
DISABLE_TELEMETRY = true;
|
|
DISABLE_BOT_CHECK = true;
|
|
};
|
|
};
|
|
services.cloudflared.tunnels."a1dfa315-7fc3-4a65-8c02-8387932c35c3".ingress."umami.hadi.icu" = "http://localhost:${toString config.services.umami.settings.PORT}";
|
|
systemd.services.default-creds.environment = {
|
|
PUBLIC_UMAMI_URL = "https://umami.hadi.icu";
|
|
# FIXME:
|
|
PUBLIC_UMAMI_WEBSITE_ID = "7197484c-01ad-488e-9caa-5ab7b7595f08";
|
|
UMAMI_URL = "http://localhost:8097";
|
|
UMAMI_WEBSITE_ID = "7197484c-01ad-488e-9caa-5ab7b7595f08";
|
|
};
|
|
}
|