diff --git a/system/server/seafile.nix b/system/server/seafile.nix index 04cd0b9..83fb1da 100644 --- a/system/server/seafile.nix +++ b/system/server/seafile.nix @@ -4,10 +4,17 @@ seahubPackage = inputs.nixpkgs-stable.legacyPackages.${pkgs.system}.seahub; adminEmail = "jurnwubben@gmail.com"; - initialAdminPassword = "test"; + initialAdminPassword = "ChangeMeTheFuckNow!"; + + gc.enable = true; ccnetSettings.General.SERVICE_URL = "https://files.jsw.tf"; - + seahubExtraConf = '' +ALLOWED_HOSTS = ['.files.jsw.tf'] +CSRF_COOKIE_SECURE = True +CSRF_COOKIE_SAMESITE = 'Strict' +CSRF_TRUSTED_ORIGINS = ['https://files.jsw.tf', 'https://www.files.jsw.tf'] + ''; seafileSettings = { fileserver = { host = "unix:/run/seafile/server.sock";