nixCraft published a tutorial about listing all installed Nginx modules and compiled flags.
How to list installed Nginx modules and compiled flags
Explains how to see which flags Nginx compiled and list installed Nginx modules under a Linux, macOS, *BSD or Unix-like systems.
How to list installed Nginx modules and compiled flags - nixCraft