diff options
author | Tomas Volf <~@wolfsden.cz> | 2024-10-06 17:22:57 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-11-20 23:41:08 +0100 |
commit | ad09bf96388acd8302dfd9ed52f8c88464064472 (patch) | |
tree | 81b4f749fe34cdb07ec9f87f9ff263af3b354a8c /gnu/services/web.scm | |
parent | 123dcaefe921d390a5670b39ef92ff614b99ac11 (diff) | |
download | guix-ad09bf96388acd8302dfd9ed52f8c88464064472.tar.gz guix-ad09bf96388acd8302dfd9ed52f8c88464064472.zip |
services: nginx-upstream-configuration: Allow file-like objects
* gnu/services/web.scm (emit-nginx-upstream-config): Support file-like
objects.
* doc/guix.texi (Web Services)[nginx-upstream-configuration]: Document it.
Change-Id: I49996e358174dc77b31e3c91b908a6a72f3eb705
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services/web.scm')
-rw-r--r-- | gnu/services/web.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnu/services/web.scm b/gnu/services/web.scm index 6f77efaaf2..3997fe2ab8 100644 --- a/gnu/services/web.scm +++ b/gnu/services/web.scm @@ -704,8 +704,10 @@ of index files." (cons "\n" (map (lambda (line) - (simple-format #f " ~A\n" line)) - (flatten extra-content))) + `(" " ,line "\n")) + (if (list? extra-content) + extra-content + (list extra-content)))) '())) " }\n")) |