mirror of
https://github.com/tuxdotrs/nix-config.git
synced 2025-12-15 23:00:06 +05:30
33 lines
630 B
Nix
33 lines
630 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
services = {
|
|
umami = {
|
|
enable = true;
|
|
settings = {
|
|
APP_SECRET_FILE = config.sops.secrets.umami.path;
|
|
PORT = 4645;
|
|
};
|
|
createPostgresqlDatabase = true;
|
|
};
|
|
|
|
nginx = {
|
|
enable = lib.mkForce true;
|
|
virtualHosts = {
|
|
"umami.tux.rs" = {
|
|
forceSSL = true;
|
|
useACMEHost = "tux.rs";
|
|
locations = {
|
|
"/" = {
|
|
proxyPass = "http://localhost:${toString config.services.umami.settings.PORT}";
|
|
proxyWebsockets = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|