-
Notifications
You must be signed in to change notification settings - Fork 416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sorting keys breaks nginx.conf #122
Comments
We've actually tried to work around issues like this before with some fancy jinja templating. I feel like the only way to really get around it is to redesign how part of the ng formula works. |
Ugly but practical workaround for the log_format case:
EDIT: plus of course
in order to suppress the default access_log option from being added. On a side node: couldn't nginx.conf be generated with an orderd list in pillar like the managed vhosts are? |
Thanks @mstarostik I raised #208 to document your work. |
Document #122 solution in pillar.example
Using a pillar like:
with the state
nginx.ng.config
produces an invalidnginx.conf
since theaccess_log
directive is put higher in the config and the log_format isn't defined yet.Nginx HTTP Log Module Reference
The text was updated successfully, but these errors were encountered: