finished seafile configuration (for now)
This commit is contained in:
parent
5f210e227b
commit
9c344e9df2
1 changed files with 7 additions and 3 deletions
|
|
@ -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
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue