Nextcloud: Difference between revisions
imported>Onny mNo edit summary |
imported>Onny Add note on max upload file size |
||
| Line 206: | Line 206: | ||
{{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>}} | |||
=== Increae 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>}} | ||