From 5cf5e7ff4c597f8244e631013ea70b737c3b3ed8 Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Thu, 10 Sep 2015 13:21:38 +0200 Subject: [PATCH] wordpress: allow extending Wordpress's .htaccess file --- .../web-servers/apache-httpd/wordpress.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-servers/apache-httpd/wordpress.nix b/nixos/modules/services/web-servers/apache-httpd/wordpress.nix index 2df8d354803b..921f774bcaa0 100644 --- a/nixos/modules/services/web-servers/apache-httpd/wordpress.nix +++ b/nixos/modules/services/web-servers/apache-httpd/wordpress.nix @@ -40,6 +40,8 @@ let RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L] + + ${config.extraHtaccess} ''; # WP translation can be found here: @@ -220,7 +222,18 @@ in settings, see . ''; }; - }; + extraHtaccess = mkOption { + default = ""; + example = + '' + php_value upload_max_filesize 20M + php_value post_max_size 20M + ''; + description = '' + Any additional text to be appended to Wordpress's .htaccess file. + ''; + }; + }; documentRoot = wordpressRoot;