From: Bruno Victal <mirai@makinata.eu>
To: Timo Wilken <guix@twilken.net>
Cc: 63877@debbugs.gnu.org
Subject: [bug#63877] [PATCH v2] gnu: services: web: Allow specifying extra php-fpm environment variables.
Date: Mon, 5 Jun 2023 04:44:37 +0100 [thread overview]
Message-ID: <c3959254-e0bb-381d-2794-026d77fd080d@makinata.eu> (raw)
In-Reply-To: <e02dd0f19603c3e0090137ace5a407dd448e0d88.1685887116.git.guix@twilken.net>
On 2023-06-04 14:59, Timo Wilken wrote:
> @@ -1096,6 +1100,9 @@ (define php-fpm-shepherd-service
> #$@(if php-ini-file
> `("-c" ,php-ini-file)
> '()))
> + #:environment-variables
> + (append #$environment-variables
> + (default-environment-variables))
Ungexp-ing lists can be rather tricky since your snippet will expand to:
--8<---------------cut here---------------start------------->8---
...
#:environment-variables (append ("FOO=bar" ...)
(default-environment-variables))
...
--8<---------------cut here---------------end--------------->8---
Which is interpreted as a procedure call. (and results in a hanged shepherd)
You need to quote the list here:
--8<---------------cut here---------------start------------->8---
#:environment-variables (append '#$environment-variables
(default-environment-variables))
--8<---------------cut here---------------end--------------->8---
Bonus points if you can write a small system test for this. (see
gnu/tests/web.scm for inspiration)
For our purposes, a pair of HTTP servers where one of them uses a
self-signed certificate will suffice.
--
Furthermore, I consider that nonfree software must be eradicated.
Cheers,
Bruno.
next prev parent reply other threads:[~2023-06-05 3:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-03 18:25 [bug#63877] [PATCH] gnu: services: web: Set SSL_CERT_DIR in php-fpm environment Timo Wilken
2023-06-03 22:18 ` Bruno Victal
2023-06-04 13:59 ` [bug#63877] [PATCH v2] gnu: services: web: Allow specifying extra php-fpm environment variables Timo Wilken
2023-06-05 3:44 ` Bruno Victal [this message]
2023-07-01 14:40 ` [bug#63877] [PATCH] gnu: services: web: Set SSL_CERT_DIR in php-fpm environment Ludovic Courtès
2023-10-15 20:54 ` [bug#63877] [PATCH v2] gnu: services: web: Allow specifying extra php-fpm environment variables Timo Wilken
2023-10-19 14:32 ` Bruno Victal
2024-02-17 23:21 ` [bug#63877] Reworked patch for setting " guix
2024-02-17 23:21 ` [bug#63877] [PATCH 1/2] gnu: services: web: Allow specifying extra " guix
2024-02-17 23:21 ` [bug#63877] [PATCH 2/2] tests: web: Test environment variables are set for php-fpm guix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c3959254-e0bb-381d-2794-026d77fd080d@makinata.eu \
--to=mirai@makinata.eu \
--cc=63877@debbugs.gnu.org \
--cc=guix@twilken.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.