about summary refs log tree commit diff
path: root/templates
diff options
context:
space:
mode:
authorPaweł Dybiec <pawel@dybiec.info>2020-08-10 19:47:13 +0200
committerPaweł Dybiec <pawel@dybiec.info>2020-08-10 19:47:13 +0200
commit63d142ff7f457ddc43427ed367efa3c98a9e46e6 (patch)
treefc46ca3423f35113a4c3dc0c8b91ef3a7b57d7af /templates
parentFix matrix address on main website (diff)
Add custom headers
Diffstat (limited to 'templates')
-rw-r--r--templates/nginx.conf.j23
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/nginx.conf.j2 b/templates/nginx.conf.j2
index 2cc027d..1b7f18d 100644
--- a/templates/nginx.conf.j2
+++ b/templates/nginx.conf.j2
@@ -65,5 +65,8 @@ server {
   location ~ (\.env|wp-login\.php|wp-admin) {
     return 301 https://www.youtube.com/watch?v=dQw4w9WgXcQ;
   }
+  {% for key in (server.headers|default([])) %}
+  add_header {{ key }} "{{ server.headers[key] }}" always;
+  {% endfor %}
 
 }