feat: added firefly-iii

This commit is contained in:
Nick 2025-10-09 03:49:09 -05:00
parent 4c5dd6881b
commit 02b357f8e9
2 changed files with 19 additions and 1 deletions

View file

@ -8,7 +8,7 @@ let
;
label = "Firefly-III";
name = "firefly-iii";
domain = "${name}.${domain0}";
domain = "finances.${domain0}";
in
{
label = label;

View file

@ -2,6 +2,8 @@
let
inherit (flake.config.services.instances) firefly-iii;
inherit (flake.config.machines.devices) ceres;
# localhost = "${ceres.ip.addess0}:${service.ports.port0}";
host = service.domains.url0;
service = firefly-iii;
in
{
@ -17,6 +19,22 @@ in
firefly-iii-data-importer = {
enable = true;
};
caddy = {
virtualHosts = {
${host} = {
extraConfig = ''
root * ${
config.services.phpfpm.pools.firefly-iii.settings.php_admin_value."opcache.file_cache"
}/../public
php_fastcgi unix//run/phpfpm/firefly-iii.sock
file_server
encode gzip
tls ${service.ssl.cert} ${service.ssl.key}
'';
};
};
};
};
sops =
let