diff --git a/sys/platforms/vps/srv/default.nix b/sys/platforms/vps/srv/default.nix index 71beeca..a4753d5 100644 --- a/sys/platforms/vps/srv/default.nix +++ b/sys/platforms/vps/srv/default.nix @@ -18,5 +18,6 @@ with lib; { ./immich.nix ./mealie.nix ./dufs.nix + ./isso.nix ]; } diff --git a/sys/platforms/vps/srv/isso.nix b/sys/platforms/vps/srv/isso.nix new file mode 100644 index 0000000..e845c2f --- /dev/null +++ b/sys/platforms/vps/srv/isso.nix @@ -0,0 +1,44 @@ +{ + lib, + pkgs, + ... +}: +with lib; { + services = { + nginx = { + virtualHosts."isso.posixlycorrect.com" = { + enableACME = true; + forceSSL = true; + extraConfig = '' + proxy_headers_hash_max_size 512; + proxy_headers_hash_bucket_size 128; + ''; + locations."/" = { + proxyPass = "http://[::1]:8099"; + }; + }; + }; + + isso = { + enable = true; + settings = { + general = { + host = "http://isso.posixlycorrect.com"; + dbpath = "/var/lib/isso/comments.db"; + notify = "stdout"; + }; + moderation = { + enabled = false; + approve-if-email-previously-approved = false; + purge-after = "365d"; + }; + server = { + listen = "http://[::1]:8099"; + }; + guard = { + require-author = true; + }; + }; + }; + }; +}