Nextcloud: Difference between revisions

imported>Fliiiix
It took me ~1h to figure out that i can not put this into the secrets file
imported>Onny
Move section to configuration part
Line 111: Line 111:


Test mails can be send via administration interface in the menu section "Basic settings".
Test mails can be send via administration interface in the menu section "Basic settings".
=== Increase max upload file size ===
To increase the maximum upload file size, for example to 16 GB, add following parameters to the <code>phpOptions</code> option of the Nextcloud module
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.nextcloud = {
  [...]
  phpOptions = {
    upload_max_filesize = "16G";
    post_max_size = "16G";
  };
};
</nowiki>}}


=== Secrets management ===
=== Secrets management ===
Line 210: Line 224:
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.nginx.virtualHosts."localhost".listen = [ { addr = "127.0.0.1"; port = 8080; } ];
services.nginx.virtualHosts."localhost".listen = [ { addr = "127.0.0.1"; port = 8080; } ];
</nowiki>}}
=== Increase max upload file size ===
To increase the maximum upload file size, for example to 16 GB, add following parameters to the <code>phpOptions</code> option of the Nextcloud module
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
services.nextcloud = {
  [...]
  phpOptions = {
    upload_max_filesize = "16G";
    post_max_size = "16G";
  };
};
</nowiki>}}
</nowiki>}}