python-nginx
python-nginx copied to clipboard
Create and modify nginx serverblock configs in Python
Hello! Noticed strange delays, or even and seemingly endless loop while parsing a bunch of config files. Was able to determine that https://github.com/peakwinter/python-nginx/blob/20a848405e18d62309418399bcc6d1aebcb81156/nginx.py#L540-L554 in "loads" function (lines 540-554) takes an...
Hi Thank you for working on this useful library A question: This line is last line of my existing nginx.conf, which adds 2 more configs for specific parameters. It is...
Instead of getting info about memory position, now we receive info that helps us navigate the nginx conf structure on some cases. For example: Before: After:
Fixes #46
I've observed that the code uses data[index:] for regular expression matching on each occasion. When dealing with a very large Nginx configuration file, for instance, one with tens of thousands...