RE: How to set vhost-specific ENV vars for pass to php-fpm/fastcgi?

2018-11-28 Thread Reinis Rozitis
> In this case the ENV var "VHOST1_TOKEN" is corrrectly defined in the match > case, but it is also *defined*, though null, for any/all other vhosts. > > How do I construct this conditional ENV var setting to ONLY set/defined the > vars on host match? You can add if_not_empty at the end of the

How to set vhost-specific ENV vars for pass to php-fpm/fastcgi?

2018-11-28 Thread pgndev
I run nginx + php-fpm. I include the following 'secure' config into my shared site config cat ../sec/params.shared fastcgi_param DATABASE_HOST "localhost"; fastcgi_param DATABASE_PORT "3306"; fastcgi_param DATABASE_NAME "db_name"; fastcgi_param DATA

Re: TLSv1.3 by default?

2018-11-28 Thread Olaf van der Spek
Maxim Dounin Wrote: --- > > OK, but that file sets some settings differently from documented > defaults, > > which is kinda confusing. > > Wouldn't it make sense to not do that? > > > > I'd prefer the nginx.conf to be as clean and simple as possi

Re: TLSv1.3 by default?

2018-11-28 Thread Maxim Dounin
Hello! On Wed, Nov 28, 2018 at 02:29:26PM -0500, Olaf van der Spek wrote: > Maxim Dounin Wrote: > --- > > There is no such thing as "defaults from the stock nginx.conf". > > The nginx.conf file can be used to set various configuration > > par

Re: TLSv1.3 by default?

2018-11-28 Thread Olaf van der Spek
Maxim Dounin Wrote: --- > There is no such thing as "defaults from the stock nginx.conf". > The nginx.conf file can be used to set various configuration > parameters. > > Obviously enough, distributions may need to set something in > nginx.co

Re: Nginscript

2018-11-28 Thread Dmitry Volyntsev
On 28.11.2018 3:21, chadhasumit13 wrote: Hi, I intend to generate a unique id (by making use of npm uuid ) and make an external call to an HTTP end-point, whenever a new call is received by NGINX. Is it possible to use nginscript for this purpose? If yes, could you please route me to a good

Re: TLSv1.3 by default?

2018-11-28 Thread Maxim Dounin
Hello! On Wed, Nov 28, 2018 at 03:07:25AM -0500, Olaf van der Spek wrote: > Olaf van der Spek Wrote: > --- > > Maxim Dounin Wrote: > > --- > > > Hello! > > > > > > On Fri, Nov 23, 2018 at 01:0

Re: TLSv1.3 by default?

2018-11-28 Thread Olaf van der Spek
Olaf van der Spek Wrote: --- > Maxim Dounin Wrote: > --- > > Hello! > > > > On Fri, Nov 23, 2018 at 01:05:55PM -0500, Olaf van der Spek wrote: > > > > > What's the recommendation for distros? S