git.iko.soy/typeable/nixpkgs
on master help sign in
wordpress: allow extending Wordpress's .htaccess file
commit5cf5e7ff4c597f8244e631013ea70b737c3b3ed8 authorBas van Dijk <v.dijk.bas@gmail.com> dateThu 10 Sep 2015, 13:21 (11 years ago) parentaf3ec14
1 file changed+14−1
nixos/modules/services/web-servers/apache-httpd/wordpress.nix+14−1
nixos/modules/services/web-servers/apache-httpd/wordpress.nix+14−1
@@ -40,6 +40,8 @@ let
4040 RewriteRule ^(.*\.php)$ $1 [L]
4141 RewriteRule . index.php [L]
4242 </IfModule>
43+
44+ ${config.extraHtaccess}
4345 '';
4446
4547 # WP translation can be found here:
@@ -220,7 +222,18 @@ in
220222 settings, see <link xlink:href='http://codex.wordpress.org/Editing_wp-config.php'/>.
221223 '';
222224 };
223− };
225+ extraHtaccess = mkOption {
226+ default = "";
227+ example =
228+ ''
229+ php_value upload_max_filesize 20M
230+ php_value post_max_size 20M
231+ '';
232+ description = ''
233+ Any additional text to be appended to Wordpress's .htaccess file.
234+ '';
235+ };
236+ };
224237
225238 documentRoot = wordpressRoot;
226239