There are 2 self-written nginx modules, a data output module and a module that contains actual data. It is necessary initialize the pointer that is located in the output module from the module that contains the actual data. Initialize this pointer with the address to a variable with actual data (which periodically changes its value), so at the time of data output, dereferencing the pointer, show (output) actual data.