vps: add isso comment server
This commit is contained in:
parent
7cdcacbc03
commit
078ee248fe
2 changed files with 45 additions and 0 deletions
|
@ -18,5 +18,6 @@ with lib; {
|
||||||
./immich.nix
|
./immich.nix
|
||||||
./mealie.nix
|
./mealie.nix
|
||||||
./dufs.nix
|
./dufs.nix
|
||||||
|
./isso.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
44
sys/platforms/vps/srv/isso.nix
Normal file
44
sys/platforms/vps/srv/isso.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue