feat: added firefly-iii

This commit is contained in:
Nick 2025-10-09 05:08:22 -05:00
parent 6cd7aec69b
commit 8e2c83721a
2 changed files with 6 additions and 2 deletions

View file

@ -23,6 +23,10 @@ in
};
settings = {
DB_CONNECTION = "pgsql";
DB_HOST = "localhost";
DB_PORT = "5432";
DB_DATABASE = service.name;
DB_USERNAME = service.name;
APP_URL = "https://${host}";
APP_KEY_FILE = config.sops.secrets."${service.name}-pass".path;
DB_PASSWORD_FILE = config.sops.secrets."${service.name}-data".path;
@ -37,7 +41,7 @@ in
extraConfig = ''
root * ${config.services.firefly-iii.package}/public
encode gzip
php_fastcgi unix/run/phpfpm/firefly-iii.sock {
php_fastcgi unix//run/phpfpm/firefly-iii.sock {
try_files {path} /index.php?{query}
trusted_proxies private_ranges
}

View file

@ -27,7 +27,7 @@ in
ensureDatabases = [ firefly-iii.name ];
ensureUsers = [
{
name = "firefly-iii";
name = firefly-iii.name;
ensureDBOwnership = true;
}
];