Closed jeffNagra closed 9 years ago
The Nginx lens is not recursive (yet).
The letsencrypt project is using Augeas for apache support, and would like to use it for Nginx as well.
I copied lvm.aug to add support for recursion (04cb46d8a), but I am lost as to how to support the location block syntax. The syntax for lenses has me baffled.
@craigloftus could you have a look at PR #225 and let me know if (a) that updated lens covers everything you'd need and (b) if the tree it produces is reasonable for your pruposes, especially how 'if' and 'location' directives are parsed ?
As discussed with Raphink....
The nginx lens is failing the parse even the default nginx.conf supplied with the nginx package (below)…
set /augeas/load/nginx/lens "Nginx.lns" set /augeas/load/nginx/incl "/home/root/jeff" load print /augeas//error
/augeas/files/home/root/jeff/error = "parse_failed" /augeas/files/home/root/jeff/error/pos = "410" /augeas/files/home/root/jeff/error/line = "20" /augeas/files/home/root/jeff/error/char = "0" /augeas/files/home/root/jeff/error/lens = "/usr/share/augeas/lenses/dist/nginx.aug:61.10-.57:" /augeas/files/home/root/jeff/error/message = "Iterated lens matched less than it should"
Full default nginx.conf (comes with the nginx RPM):