Set environment variables

2022-04-26 Thread Valerio Pachera
Hi, I have several backend configuration that make use of a custom script: external-check command 'custom-script.sh' The script read uses the environment variables such as $HAPROXY_PROXY_NAME. I would like to be able to set and environment variable in the backend declaration, before running the

Re: Fwd: Set environment variables

2022-05-17 Thread Valerio Pachera
Il giorno ven 13 mag 2022 alle ore 16:10 Willy Tarreau ha scritto: > Hi Valerio, > > On Mon, May 09, 2022 at 10:14:09AM +0200, Valerio Pachera wrote: > > Unfortunately I'm not a developer so it will take too much time form me > to > > contribute to the code. > > I

Fwd: Set environment variables

2022-05-06 Thread Valerio Pachera
Hi, I have several backend configuration that make use of a custom script: external-check command 'custom-script.sh' The script read uses the environment variables such as $HAPROXY_PROXY_NAME. I would like to be able to set and environment variable in the backend declaration, before running the

Re: Fwd: Set environment variables

2022-05-09 Thread Valerio Pachera
Il giorno dom 8 mag 2022 alle ore 11:07 Willy Tarreau ha scritto: > > With that said, I admit that it could be useful to have another variable > such as HAPROXY_SERVER_SSL to indicate if SSL is being used, and possibly > another one such as HAPROXY_SERVER_PROTO to indicate when a protocol is >