finished seafile configuration (for now)
This commit is contained in:
parent
98b18487ae
commit
0468ae075c
1 changed files with 7 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{inputs, pkgs, ...}: {
|
||||
{config, inputs, pkgs, ...}:{
|
||||
services.seafile = {
|
||||
enable = true;
|
||||
enable = config.niksos.server;
|
||||
seahubPackage = inputs.nixpkgs-stable.legacyPackages.${pkgs.system}.seahub;
|
||||
|
||||
adminEmail = "jurnwubben@gmail.com";
|
||||
|
|
@ -16,8 +16,12 @@ CSRF_COOKIE_SAMESITE = 'Strict'
|
|||
CSRF_TRUSTED_ORIGINS = ['https://files.jsw.tf', 'https://www.files.jsw.tf']
|
||||
'';
|
||||
seafileSettings = {
|
||||
quota.default = 30;
|
||||
history.keep_days = 40;
|
||||
library_trash.expire_days = 14;
|
||||
fileserver = {
|
||||
host = "unix:/run/seafile/server.sock";
|
||||
web_token_expire_time = 14400; # 4 hours
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue