Open TimRots opened 1 year ago
Yes adding those properties to nginx_config
sounds like the way to go @TimRots , would be happy to accept a PR!
Thank you for the quick reply @bmhughes. I will try to make time next week to work on this and ask for your review when I have a draft PR ready.
:ghost: Brief Description
Currently the
nginx_config
resource in this cookbook has afolder_mode
property which defaults to0750
and is used fornginx_dir
,configs in nginx_dir
, andnginx_log_dir
permissions.These defaults can cause issues with the logrotate configuration that is shipped with most Debian (like) OS-es.
A suggestion to omit this issue would be to introduce more fine-grained control over the logdir permissions by adding properties like
log_dir_perm
,log_dir_owner
, andlog_dir_group
.I would like to volunteer for making a fix if I can get some feedback from the maintainers on the how.
:pancakes: Cookbook version
>= 12.1.0
:woman_cook: Chef-Infra Version
18.2.7
:tophat: Platform details
Ubuntu 20.04 / 22.04