services.nextcloud.phpOptions
Options for PHP's php.ini file for nextcloud.
Please note that this option is additive on purpose while the attribute values inside the default are option defaults: that means that
{
services.nextcloud.phpOptions."opcache.interned_strings_buffer" = "23";
}
will override the php.ini option opcache.interned_strings_buffer without
discarding the rest of the defaults.
Overriding all of phpOptions (including upload_max_filesize, post_max_size
and memory_limit which all point to services.nextcloud.maxUploadSize
by default) can be done like this:
{
services.nextcloud.phpOptions = lib.mkForce {
/* ... */
};
}
- Type
attribute set of (string or signed integer)- Default
{ catch_workers_output = "yes"; display_errors = "stderr"; error_reporting = "E_ALL & ~E_DEPRECATED & ~E_STRICT"; expose_php = "Off"; "opcache.fast_shutdown" = "1"; "opcache.interned_strings_buffer" = "8"; "opcache.max_accelerated_files" = "10000"; "opcache.memory_consumption" = "128"; "opcache.revalidate_freq" = "1"; "openssl.cafile" = { _type = "literalExpression"; text = "config.security.pki.caBundle"; }; output_buffering = "0"; short_open_tag = "Off"; }- Declared
- <nixpkgs/nixos/modules/services/web-apps/nextcloud.nix>