What's the maximum size of an nginx *.conf file?

Solution 1:

Looking at nginx configuration parsing function ngx_conf_read_token() function in ngx_conf_file.c, there seems to be a limit of 4096 bytes for a configuration directive's data.

I don't see any other limits on the configuration file size with a quick glance.