From d364d240ca5a4ce76bf74aee0d4fb71d2338fc20 Mon Sep 17 00:00:00 2001 From: Timo Wilken Date: Sat, 17 Feb 2024 19:09:42 +0100 Subject: Set environment variables in php-fpm configuration ...instead of relying on them to be passed through from the outer environment. PHP-FPM doesn't always do that, including when it's configured as in Guix. --- tw/services/nextcloud.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tw/services/nextcloud.scm') diff --git a/tw/services/nextcloud.scm b/tw/services/nextcloud.scm index f8bef474..555ea2d2 100644 --- a/tw/services/nextcloud.scm +++ b/tw/services/nextcloud.scm @@ -276,7 +276,9 @@ opcache.revalidate_freq=120 (body '("return 301 /remote.php$request_uri;")))))))) (service (@ (tw services php-fpm) php-fpm-service-type) - (php-fpm-configuration + ((@ (tw services php-fpm) php-fpm-configuration) + (environment-variables ; Nextcloud News needs this. + `(("SSL_CERT_DIR" . ,(file-append nss-certs "/etc/ssl/certs")))) (php-ini-file %nextcloud-php.ini))) (simple-service 'nextcloud-certificates certbot-service-type -- cgit v1.2.3