Custom Mattermost nginx configuration params not picked up
Summary
Custom Mattermost nginx configuration params not picked up.
According to gitlab.rb any parameters for nginx will work for mattermost_nginx.
Steps to reproduce
Add following lines to gitlab.rb
mattermost_nginx['referrer_policy'] = 'strict-origin-when-cross-origin' mattermost_nginx['hsts_max_age'] = 31536000 mattermost_nginx['hsts_include_subdomains'] = false
What is the current bug behavior?
Mattermost Nginx configuration is not written in gitlab-mattermost-http.conf
What is the expected correct behavior?
Following code should be in gitlab-mattermost-http.conf
## HSTS Config ## https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/ add_header Strict-Transport-Security "max-age=31536000"; add_header Referrer-Policy strict-origin-when-cross-origin;
Details of package version
Provide the package version installation details
gitlab/gitlab-ce:11.10.4-ce.0
Configuration details
Provide the relevant sections of `/etc/gitlab/gitlab.rb`
mattermost_nginx['referrer_policy'] = 'strict-origin-when-cross-origin' mattermost_nginx['hsts_max_age'] = 31536000 mattermost_nginx['hsts_include_subdomains'] = false
Edited by jonasthim