From f0255dd5bd2b793741fa1f6f349b89219c9bd56a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 19 Jan 2021 22:28:31 +0100 Subject: [PATCH] Configuration adjustments for shaarli and mastodon --- modules/private/websites/tools/tools/shaarli.nix | 2 ++ modules/webapps/mastodon.nix | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/private/websites/tools/tools/shaarli.nix b/modules/private/websites/tools/tools/shaarli.nix index 24b4845..da8f734 100644 --- a/modules/private/websites/tools/tools/shaarli.nix +++ b/modules/private/websites/tools/tools/shaarli.nix @@ -60,6 +60,8 @@ in rec { "php_value[session.name]" = "ShaarliPHPSESSID"; "php_admin_value[open_basedir]" = "${basedir}:/tmp"; "php_admin_value[session.save_path]" = "${varDir}/phpSessions"; + "php_admin_value[upload_max_filesize]" = "200M"; + "php_admin_value[post_max_size]" = "200M"; }; }; } diff --git a/modules/webapps/mastodon.nix b/modules/webapps/mastodon.nix index 2f5a8e3..df2dbb2 100644 --- a/modules/webapps/mastodon.nix +++ b/modules/webapps/mastodon.nix @@ -167,7 +167,7 @@ in environment.BUNDLE_GEMFILE = "${cfg.workdir.gems.confFiles}/Gemfile"; environment.SOCKET = cfg.sockets.rails; - path = [ cfg.workdir.gems cfg.workdir.gems.ruby pkgs.file ]; + path = [ cfg.workdir.gems cfg.workdir.gems.ruby pkgs.file pkgs.imagemagick ]; preStart = '' install -m 0755 -d ${cfg.dataDir}/tmp/cache -- 2.41.0