[Nix-dev] Why nginx config isn't placed into /etc/nginx/nginx.conf?

Nathan Bijnens nathan at nathan.gs
Tue Aug 9 15:50:48 CEST 2016


And one extra reason is that this way we can keep previous versions
(generations) of the config file, allowing quick rollbacks.

On Tue, Aug 9, 2016 at 2:34 PM Robin Gloster <robin at loc-com.de> wrote:

> Hi,
>
> Adding to Eelco's explanation, this would also theoretically allow you to
> start e.g.
> different nginx servers on different versions with different
> configurations. For
> the most or probably all services more changes would be needed to support
> this
> realistically.
>
> Robin
>
>
> -----Original message-----
> > From:Eelco Dolstra <eelco.dolstra at logicblox.com>
> > Sent: Tuesday 9th August 2016 11:38
> > To: nix-dev at lists.science.uu.nl
> > Subject: Re: [Nix-dev] Why nginx config isn't placed into
> /etc/nginx/nginx.conf?
> >
> > Hi,
> >
> > On 08/09/2016 01:29 PM, Daniel Hlynskyi wrote:
> >
> > > Is this intentional? I'm writing a service and want to know whether to
> do like
> > > nginx or use /etc for configs.
> >
> > Generally, files should not be placed in /etc unless they are global
> > configuration, like /etc/resolv.conf. This way, implicit dependencies are
> > avoided. Service-specific configuration files like nginx.conf don't need
> to be
> > in /etc because they usually can be passed to the service via a command
> line
> > switch from the generated systemd unit.
> >
> > --
> > Eelco Dolstra | LogicBlox, Inc. | http://nixos.org/~eelco/
> > _______________________________________________
> > nix-dev mailing list
> > nix-dev at lists.science.uu.nl
> > http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160809/b05e7ba8/attachment-0001.html>


More information about the nix-dev mailing list