Skip to content
Snippets Groups Projects
Commit 7d5b68b8 authored by ale's avatar ale
Browse files

Support global custom headers in NGINX

parent 6c770545
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,10 @@ limit_req zone=perserver burst={{ nginx_limit_perserver_burst }};
# Enable HSTS.
add_header Strict-Transport-Security "max-age=31556926" always;
{% for hdr, value in nginx_global_custom_headers | default({}) | dictsort %}
add_header {{ hdr }} "{{ value }}" always;
{% endfor %}
# Serve our favicon.
location = /favicon.ico {
expires 15d;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment