Hi Jeff, If the file is only stored in the FS and you can't put its content into HAProxy's memory at run time (using a map as explained by Jarno), then you may want to use SPOE. So the blocking files IO will be done in a process running outside of HAProxy. You have an SPOA (agent) example in HAProxy's source code, written in C. If you want an SPOA in an other language, I would say "stay tuned" :)
Baptiste On Sun, Mar 3, 2019 at 9:20 AM Jeff <[email protected]> wrote: > I need to add an authorization header for a target server, e.g. > http-request add-header Authorization Bearer\ MYTOKENDATA > > where MYTOKENDATA is read from a file for each proxy message. > (MYTOKENDATA is written asynchronously to the file by another > process.) > > How to do this in HAProxy? > > thanks, > Jeff > >

