Score:0

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

ms flag

Is there a limit? I can't find this info. anywhere.

If I wanted to inline an image (for testing purposes only) in an endpoint configured in my *.conf file, is there a limit?

I realize this is an odd question, but it'd be great to know this.

djdomi avatar
za flag
for what reason you would like to do something like that?!
Score:1
us flag

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.

Score:0
br flag

We got into a hard limit recently in a project.

Indeed, the limit is 512k bytes per file.

You can get past this with includes.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.