GNU bug report logs -
#26684
let nginx configs reference the store
Previous Next
Reported by: Andy Wingo <wingo <at> igalia.com>
Date: Thu, 27 Apr 2017 20:10:01 UTC
Severity: normal
Done: Christopher Baines <mail <at> cbaines.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Andy Wingo <wingo <at> igalia.com> writes:
> Hi,
>
> Is this the right way to do things? Passing lists around seems to be an
> intermediate point between strings and proper configuration values -- as
> such it seems like a useful intermediate step. The context is that I
> need to be able to extend the nginx configuration with a server config
> that references a store path.
>
> Andy
>
> From b56b797e2ca26619485d874110d3f1f0ae96fba4 Mon Sep 17 00:00:00 2001
> From: Andy Wingo <wingo <at> igalia.com>
> Date: Thu, 27 Apr 2017 19:49:02 +0200
> Subject: [PATCH 1/5] gnu: services: Nginx configs can reference store
>
> * gnu/services/web.scm (config-domain-strings, config-index-strings): Emit
> lists instead of strings.
> (emit-nginx-location-config, emit-nginx-server-config)
> (emit-nginx-upstream-config): Rename from nginx-location-config,
> default-nginx-server-config, and nginx-upstream-config. Emit lists instead of
> strings.
> (flatten): New helper.
> (default-nginx-config): Use flatten helper to write nginx conf. This allows
> location configs to reference store values.
> ---
> gnu/services/web.scm | 150 +++++++++++++++++++++++++--------------------------
> 1 file changed, 74 insertions(+), 76 deletions(-)
Hi Andy,
I tested it successfully (with a reference to the store), and it looks
good to me as well. Thanks you! You'll have some rebasing work to do
though with (lstat ssl-cert...).
Clément
This bug report was last modified 7 years and 362 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.