Francis Daly
November 22, 2021 04:18PM
On Mon, Nov 22, 2021 at 03:42:39PM -0300, Fabiano Furtado Pessoa Coelho wrote:

Hi there,

> NGINX has a -T option, where you can "test configuration, dump it and exit".
> Is there a way to process the "include" directive and dump the
> configuration "expanded"?

I think that's what "-T" does, no?

Look particularly for lines in the output that start with "# configuration file".


Or do you mean: essentially remove the "include" line and insert the
contents of the matching file(s), in place?

I think that nginx does not do that directly.

I think there is probably enough information in the "-T" output to allow
you to stitch it together yourself, if it is important.

I suspect that a good patch to add the facility to nginx directly would
be thoughtfully considered, if you think that others might use that
facility too.

Cheers,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

NGINX option: test configuration, dump it expanded and exit

Fabiano Furtado Pessoa Coelho November 22, 2021 01:44PM

Re: NGINX option: test configuration, dump it expanded and exit

Francis Daly November 22, 2021 04:18PM

Re: NGINX option: test configuration, dump it expanded and exit

Fabiano Furtado Pessoa Coelho November 22, 2021 07:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 145
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