TIL how to configure additional headers in Gitlab’s nginx
Recently, I had to configure some security headers in GitLab. GitLab uses Nginx as its web server, and it allows for easy configuration changes for some settings. For instance, enabling HTTP to HTTPS redirection can be done simply by setting nginx['redirect_http_to_https'] = true
in the gitlab.rb
configuration file.
However …
more ...