-
Hello, how i can edit http {} block in nginx.conf ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
i need log_format but template nginx.conf.j2 not contain logs block. |
Beta Was this translation helpful? Give feedback.
-
You want to look into these parameters here https://github.com/nginx/ansible-role-nginx-config/blob/main/defaults/main/template.yml#L83-L84. If you want some "real" examples that work (as they are part of the CI pipeline) check out something like https://github.com/nginx/ansible-role-nginx-config/blob/main/molecule/default/converge.yml#L32 to see how to set up a web server. The documentation is a tad bit confusing (it's my main TODO with regards to this role) but hopefully those two links get you on the right path. |
Beta Was this translation helpful? Give feedback.
You want to look into these parameters here https://github.com/nginx/ansible-role-nginx-config/blob/main/defaults/main/template.yml#L83-L84. If you want some "real" examples that work (as they are part of the CI pipeline) check out something like https://github.com/nginx/ansible-role-nginx-config/blob/main/molecule/default/converge.yml#L32 to see how to set up a web server.
The documentation is a tad bit confusing (it's my main TODO with regards to this role) but hopefully those two links get you on the right path.