aboutsummaryrefslogtreecommitdiff
path: root/tw/services/nextcloud.scm
diff options
context:
space:
mode:
authorTimo Wilken2024-02-17 19:09:42 +0100
committerTimo Wilken2024-02-25 21:30:32 +0100
commitd364d240ca5a4ce76bf74aee0d4fb71d2338fc20 (patch)
tree5a1fab7b44fca917180199907d33b4142ec9744b /tw/services/nextcloud.scm
parentf8d36774c2fc49dfb0ccb25582b56b89e14f0d94 (diff)
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.
Diffstat (limited to 'tw/services/nextcloud.scm')
-rw-r--r--tw/services/nextcloud.scm4
1 files changed, 3 insertions, 1 deletions
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