Skip to content
Snippets Groups Projects
Commit 76765bcd0de2 authored by Balasankar 'Balu' C's avatar Balasankar 'Balu' C
Browse files

Merge branch 'master' into 'master'

Nginx: implement HSTS support in the mattermost configuration template

See merge request gitlab-org/omnibus-gitlab!6033
No related branches found
No related tags found
1 merge request!72Intermediate build for testing purposes
......@@ -73,6 +73,13 @@
set_real_ip_from <%= trusted_address %>;
<% end %>
## HSTS Config
## https://www.nginx.com/blog/http-strict-transport-security-hsts-and-nginx/
<% unless @hsts_max_age.nil? || @hsts_max_age <= 0 %>
add_header Strict-Transport-Security "max-age=<%= @hsts_max_age -%>
<% if @hsts_include_subdomains %>; includeSubdomains<% end %>";
<% end %>
<% if @referrer_policy %>
add_header Referrer-Policy <%= @referrer_policy %>;
<% end %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment