|
From: | Hartmut Goebel |
Subject: | Re: [PATCH] improve nginx-service |
Date: | Tue, 22 Nov 2016 23:20:26 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
Am 20.11.2016 um 13:49 schrieb Julien Lepiller: > What do you think? should I continue in that direction, or should I go > back to what I was doing before? Thanks for working on this. I will give it a try the next days. But I want to share two points going around in my head: 1) I propose moving the nginx service into a package gnu/service/nginx.scm. Imagine we will implement an equal complex config schema for apache. Then we will get a beast of code with lots of useless "nginx-" prefixes. 2) Is it possible to add some magic to e.g. "nginx-service-type" so that all identifiers within are searched in the "nginx" scope. Example: (service-extension nginx-service-type (const (list (server ;; taken from "nginx" scope (blocks (list)) (configs (list (option (type 'server_name) ;; taken from "nginx" scope (value (list 'default))) -- Regards Hartmut Goebel | Hartmut Goebel | address@hidden | | www.crazy-compilers.com | compilers which you thought are impossible |
[Prev in Thread] | Current Thread | [Next in Thread] |