Nextcloud: Difference between revisions

Raboof (talk | contribs)
Arnecc (talk | contribs)
added link and explanation for two-factor authentication
 
(One intermediate revision by one other user not shown)
Line 114: Line 114:
};  
};  
</nowiki>}}
</nowiki>}}
=== Caching ===
[[Redis]] can be enabled as a performant caching backend using following configuration. This will bring faster page loads to your Nextcloud instance.
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.nextcloud = {               
  enable = true;       
  configureRedis = true;
  [...]
};
</nowiki>}}
Note that APCu will still be used for local caching, as recommended by Nextcloud upstream.


=== Data storage ===
=== Data storage ===
Line 348: Line 334:
services.nginx.virtualHosts."${config.services.nextcloud.hostName}".listen = [ { addr = "127.0.0.1"; port = 8080; } ];
services.nginx.virtualHosts."${config.services.nextcloud.hostName}".listen = [ { addr = "127.0.0.1"; port = 8080; } ];
</nowiki>}}
</nowiki>}}
=== Enable Two-factor authentication ===
Two-factor authentication can be enabled for your server via the administration interface in your browser. There is no way to declare this setting via nix configuration, so you should follow the [https://docs.nextcloud.com/server/latest/admin_manual/configuration_user/two_factor-auth.html official documentation] to set up Two-factor authentication.


=== Enable HEIC image preview ===
=== Enable HEIC image preview ===