vps: add isso comment server

This commit is contained in:
Fabian Montero 2025-09-18 15:33:27 -06:00
parent 7cdcacbc03
commit 078ee248fe
Signed by: fabian
GPG key ID: 3EDA9AE3937CCDE3
2 changed files with 45 additions and 0 deletions

View file

@ -18,5 +18,6 @@ with lib; {
./immich.nix
./mealie.nix
./dufs.nix
./isso.nix
];
}

View file

@ -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;
};
};
};
};
}