Highlight.js supports syntax highlighting for nginx configuration files, but support is not present on Stack Exchange’s version of highlight.js. Please consider adding support for this.
Example question on Stack Overflow demonstrating missing feature:
Windows Server Docker container cannot connect to proxy container after web server restart