Skip to content

Add mattermost_nginx['log_format'] in the default gitlab.rb

If I want to use a custom log_format for my GitLab's nginx, I can currently manage it from the gitlab.rb file thanks to :

nginx['log_format'] = "<custom log format>"

https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/files/gitlab-config-template/gitlab.rb.template#L824

Now, if I want to use a custom log_format for my Mattermost's nginx, I see nothing in the default gitlab.rb that mention it :( But it actually works if I use :

mattermost_nginx['log_format'] = "<custom log format>"

So as this mattermost_nginx['log_format'] seems to be used by omnibus, it could be good to reference it in the default gitlab.rb to show people this option exists

Merge request reports