Hi, Julien Lepiller skribis: > On Wed, 19 Oct 2016 23:04:14 +0200 > ludo@gnu.org (Ludovic Courtès) wrote: > >> Hi Julien, >> >> This looks like a great improvement to me! Sounds nicer than fiddling >> with config files. >> >> I suppose we could make ‘nginx-service-type’ extensible (info "(guix) >> Service Types and Services") so that people can write services that >> define new vhosts? > > You mean something like udev-service-type where you could extend it > with a list of vhosts? Yes, exactly. So for example one could write a service for some high-level Web service that would in turn create an nginx vhost. WDYT? > From 8bda6fdd53b3cc7470fac67228a88e0d165134dd Mon Sep 17 00:00:00 2001 > From: Julien Lepiller > Date: Mon, 26 Sep 2016 23:55:58 +0200 > Subject: [PATCH] services: improve nginx-service configuration > > * gnu/services/web.scm (): New record type. > (config-domain-strings): New procedure. > (config-index-strings): New procedure. > (default-nginx-vhost-config): New procedure. > (default-nginx-config): Add vhost support and temporary directories > (nginx-activation): Create temporary directories > (nginx-service): Add vhost-list key. > * doc/guix.texi (Web Services): Document 'nginx-vhost-configuration'. Applied with the minor changes below. Thank you! Ludo’.