all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Bruno Victal <mirai@makinata.eu>
Cc: guix-devel <guix-devel@gnu.org>
Subject: Re: Improving how NGINX modules are used and built
Date: Tue, 17 Jan 2023 16:58:30 +0100	[thread overview]
Message-ID: <874jspf909.fsf@gnu.org> (raw)
In-Reply-To: <0cbc38f9-6b50-9653-7a67-4e0b16ca3e06@makinata.eu> (Bruno Victal's message of "Wed, 11 Jan 2023 11:58:36 +0000")

Hi,

Bruno Victal <mirai@makinata.eu> skribis:

> On 2023-01-09 10:51, Ludovic Courtès wrote:
>> Hello!
>> 
>> mirai <mirai@makinata.eu> skribis:
>> 
>>> An oddity of how nginx modules are packaged in guix is that they all place
>>> the .so file under /etc/nginx/modules which is an odd directory to place library object files.
>> 
>> To me that should be treated as a bug.  Those .so files should go to
>> $PKG/lib/nginx instead, or something similar.
>
> Fixing this bug is likely to cause pain to existing module users, as the path to these .so
> files is explicitly passed to <nginx-configuration> and is what's documented in the Guix manual.

Right.  We could imagine a transition period during which nginx module
packages make their .so available under $PKG/lib/nginx primarily, but
keep $PKG/etc as a symlink to that.

[...]

>>> And nginx-configuration should serialize the modules field as a series of lines including
>>> the module .conf files, that is:
>>>
>>> include "/gnu/store/......nginx-foo-module/etc/nginx/modules/ngx_foo_module.conf";
>>> include "/gnu/store/......nginx-bar-module/etc/nginx/modules/ngx_bar_module.conf";
>>> ...
>>>
>>> (note: a directory union could be used here as an alternative)
>> 
>> I’d say that ideally, one could extend <nginx-configuration> with
>> modules, and that would automatically create the ‘load_module’
>> statements.

[...]

> I'm not convinced that <nginx-configuration> should be generating load_module statements here,
> these should be generated by the module-package itself into a .conf file and <nginx-configuration>
> generates a include statement for it. Reason being that nothing stops a module being comprised
> of several .so files or be a "pseudo-module", that is, it's a .conf snippet to be included.

Yes, that sounds even better.  From the admin’s viewpoint, it’s kind of
the same anyway: you list a bunch of packages to use as nginx modules,
and it “just works”, with the appropriate ‘load_module’ ending up
directly or indirectly in the nginx config file.

Thanks,
Ludo’.


      reply	other threads:[~2023-01-17 15:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-29  2:10 Improving how NGINX modules are used and built mirai
2023-01-09 10:51 ` Ludovic Courtès
2023-01-11 11:58   ` Bruno Victal
2023-01-17 15:58     ` Ludovic Courtès [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jspf909.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guix-devel@gnu.org \
    --cc=mirai@makinata.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.