diff --git a/sys/srv/firefly.nix b/sys/srv/firefly.nix new file mode 100644 index 0000000..db14aaf --- /dev/null +++ b/sys/srv/firefly.nix @@ -0,0 +1,31 @@ +{ + 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 = { + DB_CONNECTION = "sqlite"; + APP_ENV = "local"; + }; + }; + }; +}