mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 13:32:15 -06:00
feat: added firefly-iii
This commit is contained in:
parent
a883207bab
commit
00ec37f471
1 changed files with 17 additions and 2 deletions
|
|
@ -11,6 +11,15 @@ in
|
|||
firefly-iii = {
|
||||
enable = true;
|
||||
dataDir = service.paths.path0;
|
||||
poolConfig = ''
|
||||
listen.owner = ${config.services.caddy.user}
|
||||
pm = dynamic
|
||||
pm.max_children = 32
|
||||
pm.start_servers = 2
|
||||
pm.min_spare_servers = 2
|
||||
pm.max_spare_servers = 4
|
||||
pm.max_requests = 500
|
||||
'';
|
||||
settings = {
|
||||
DB_CONNECTION = "pgsql";
|
||||
APP_KEY_FILE = config.sops.secrets."${service.name}-pass".path;
|
||||
|
|
@ -23,9 +32,15 @@ in
|
|||
virtualHosts = {
|
||||
${host} = {
|
||||
extraConfig = ''
|
||||
reverse_proxy unix//run/phpfpm/firefly-iii.sock {
|
||||
transport fastcgi
|
||||
root * ${config.services.firefly-iii.package}/public
|
||||
encode gzip
|
||||
|
||||
php_fastcgi unix//run/phpfpm/firefly-iii.sock {
|
||||
try_files {path} /index.php?{query}
|
||||
trusted_proxies private_ranges
|
||||
}
|
||||
|
||||
file_server
|
||||
tls ${service.ssl.cert} ${service.ssl.key}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue