Open josegonzalez opened 4 years ago
Noted. Ran into this problem when testing.
Regular nginx configurations don't seem to include a stream block.
Yep thats correct. My gut says that you can regex find an uncommented stream block in the conf and then add it if it isn't there.
This library could be used to parse the conf files, but dunno how strict/not strict it needs to be.
I'm rating this as a low priority issue. I've yet to see a default config that includes a stream directive. When that happens, I'll be happy to work with those affected to include a fix.
Not sure how we might detect an existing stream block, but thats one potential issue.