mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
123dcaefe9
commit
ad09bf9638
2 changed files with 14 additions and 3 deletions
|
@ -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"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue