mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
nixos/nextcloud: disable output buffering
The Nextcloud admin guide says that output buffering must be turned off or otherwise PHP will return memory-related errors [1]. As the default value for this PHP setting is 4096 and thus enabled the Nextcloud setup is thus misconfigured by default. This misconfiguration will be shown in the "Security & setup warnings" dialog for the administrator. Fix this misconfiguration by setting "output_buffering=0" by default. [1]: https://docs.nextcloud.com/server/stable/admin_manual/configuration_files/big_file_upload_configuration.html#configuring-php
This commit is contained in:
parent
12de57585a
commit
f026ea0db0
@ -9,6 +9,7 @@ let
|
||||
jsonFormat = pkgs.formats.json {};
|
||||
|
||||
defaultPHPSettings = {
|
||||
output_buffering = "0";
|
||||
short_open_tag = "Off";
|
||||
expose_php = "Off";
|
||||
error_reporting = "E_ALL & ~E_DEPRECATED & ~E_STRICT";
|
||||
|
Loading…
Reference in New Issue
Block a user