Welcome! Log In Create A New Profile

Advanced

Re: [nginx] Document modules as a way to patch nginx?

Maxim Dounin
November 18, 2019 11:40AM
Hello!

On Thu, Nov 14, 2019 at 04:53:55PM +0100, Guillaume Outters wrote:

> Last night, while trying to progress on my {{.}} syntax in config files
> by recompiling and recompiling my nginx, I looked at
> nginx_upstream_check_module source and incidentally discovered that
> nginx modules where both powerful and easy to create.
>
> So easy and powerful that the [PATCH] I submitted in september and
> october could be quickly set into a module, integrating nicely in nginx
> build.
>
> So I wondered: couldn't this way of playing with nginx internals be
> advertized as a notice in
> http://nginx.org/en/docs/contributing_changes.html?
> Something like:
>
> ----------------
> Many changes to nginx core source, including those requiring to patch
> nginx, can be implemented as modules, which are easy to create, easy to
> publish, and easy to integrate to nginx.
> Before trying to contribute to nginx source, please contemplate
> packaging your changes as a module. Thus:
> - you will be able to test it in a clean way with your installation,
> before submitting it to the core
> - your specific needs can be implemented there without conflicting with
> the community's ones
> - you will be able to distribute it long before it is integrated to
> nginx
> - you will be able to run it on the very release of nginx your
> production uses
> ----------------

It currently says "make it clear why the suggested change is
needed", and this implies the question "wouldn't it better to be a
module". Making something a module might be or might not be
beneficial, depending on various factors.

Note well that many things can be implemented as modules only by
introducing various hacks, such as re-implementing nginx internal
functions. While this approach may appear to work, such a module
will experience various unexpected problems on changes in nginx
internals, and hence this is not recommended.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] {{x}} syntax for configuration-time replacements Attachments

Guillaume Outters 334 October 28, 2019 07:52PM

[nginx] Document modules as a way to patch nginx?

Guillaume Outters 146 November 14, 2019 10:54AM

Re: [nginx] Document modules as a way to patch nginx?

Maxim Dounin 91 November 18, 2019 11:40AM

Re: [nginx] Document modules as a way to patch nginx?

Valery Kholodkov 117 November 18, 2019 12:04PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready