diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-01-02 08:45:42 +0100 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2024-01-02 15:45:08 +0000 |
commit | b0c562900188618a705b52444022f3f1b43c00d3 (patch) | |
tree | 7e92f01c827a6177aa3aeb8e7d2c6c235cb59073 | |
parent | a017d7c3b06e5fc5787ff3ff628f2f3ca9bdc386 (diff) |
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 (cherry picked from commit f026ea0db01edbeb59137d1c927c07f48c0edfb5)
-rw-r--r-- | nixos/modules/services/web-apps/nextcloud.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index 9c6fd57e08378..3c4bcfb60c46a 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -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"; |