finished seafile configuration (for now)

This commit is contained in:
Jurn Wubben 2025-03-30 20:17:20 +00:00
parent 98b18487ae
commit 0468ae075c

View file

@ -1,6 +1,6 @@
{inputs, pkgs, ...}: { {config, inputs, pkgs, ...}:{
services.seafile = { services.seafile = {
enable = true; enable = config.niksos.server;
seahubPackage = inputs.nixpkgs-stable.legacyPackages.${pkgs.system}.seahub; seahubPackage = inputs.nixpkgs-stable.legacyPackages.${pkgs.system}.seahub;
adminEmail = "jurnwubben@gmail.com"; adminEmail = "jurnwubben@gmail.com";
@ -16,8 +16,12 @@ CSRF_COOKIE_SAMESITE = 'Strict'
CSRF_TRUSTED_ORIGINS = ['https://files.jsw.tf', 'https://www.files.jsw.tf'] CSRF_TRUSTED_ORIGINS = ['https://files.jsw.tf', 'https://www.files.jsw.tf']
''; '';
seafileSettings = { seafileSettings = {
quota.default = 30;
history.keep_days = 40;
library_trash.expire_days = 14;
fileserver = { fileserver = {
host = "unix:/run/seafile/server.sock"; host = "unix:/run/seafile/server.sock";
web_token_expire_time = 14400; # 4 hours
}; };
}; };
}; };