From b9a00a51e1b85b2c80c6b6b4d7b1655d65c7d9cb Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Sun, 17 Nov 2024 00:24:20 -0600 Subject: [PATCH] add firefly --- sys/srv/firefly.nix | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sys/srv/firefly.nix diff --git a/sys/srv/firefly.nix b/sys/srv/firefly.nix new file mode 100644 index 0000000..2dc636d --- /dev/null +++ b/sys/srv/firefly.nix @@ -0,0 +1,33 @@ +{ + lib, + pkgs, + ... +}: +with lib; { + services = { + nginx = { + virtualHosts."firefly.posixlycorrect.com" = { + enableACME = true; + forceSSL = true; + extraConfig = '' + proxy_headers_hash_max_size 512; + proxy_headers_hash_bucket_size 128; + ''; + }; + }; + + firefly-iii = { + enable = true; + user = "firefly-iii"; + dataDir = "/var/lib/firefly-iii"; + enableNginx = true; + virtualHost = "firefly.posixlycorrect.com"; + settings = { + SITE_OWNER = "fabian@posixlycorrect.com"; + DB_CONNECTION = "sqlite"; + APP_ENV = "local"; + APP_KEY_FILE = /var/trust/firefly/key_file; + }; + }; + }; +}