From 63d142ff7f457ddc43427ed367efa3c98a9e46e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dybiec?= Date: Mon, 10 Aug 2020 19:47:13 +0200 Subject: Add custom headers --- domains.yml | 15 +++++++++++++++ templates/nginx.conf.j2 | 3 +++ 2 files changed, 18 insertions(+) diff --git a/domains.yml b/domains.yml index 90fac86..98ee92d 100644 --- a/domains.yml +++ b/domains.yml @@ -4,6 +4,21 @@ domains: name: "dybiec.info" http_redirect: true dir: "/usr/share/nginx/html" + headers: + x-moomin0: "⠀⠀⠀⠀⠀⠀⠀⢠⢦⡀⠀⡰⣩⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀" + x-moomin1: "⠀⠀⠀⠀⠀⠀⠀⠘⣄⠙⠍⠁⠙⠦⡀⠀⠀⠀⠀⠀⠀⠀⠀" + x-moomin2: "⠀⠀⠀⠀⠀⠀⠀⠀⡎⠀⠀⡠⠄⠔⠊⠉⠒⠒⠒⢄⠀⠀⠀" + x-moomin3: "⠀⠀⠀⠀⠀⠀⠀⢀⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⠆⠀⠀" + x-moomin4: "⠀⠀⢠⢤⠜⡆⠀⢸⠀⠰⣄⠀⠀⠀⠀⠀⠀⠀⣠⠎⠀⠀⠀" + x-moomin5: "⠀⠀⠱⠤⡁⠈⠑⠇⠀⠀⠀⠉⠒⠤⠤⠄⢖⠊⠀⡐⠧⣄⣀" + x-moomin6: "⠀⠀⠀⠀⠘⢆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⡉⠀⣀⣨⡷" + x-moomin7: "⠀⠀⠀⠀⠀⠈⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢱⠜⠁ " + x-moomin8: "⠀⠀⠀⠀⠀⠀⢇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣸⠱⡀⠀" + x-moomin9: "⠀⠀⠀⠀⠀⠀⠸⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⠁⠀⣣⠀" + x-moominA: "⠀⠀⠀⠀⠀⠀⠀⠑⣄⠀⠀⠀⠀⠀⠀⠀⢀⣠⣀⠴⠊⠁⠀" + x-moominB: "⠰⢍⢒⢄⠀⠀⠀⠀⢸⢳⢆⠀⠀⠀⠰⡖⠋⠁⠀⠀⠀⠀⠀" + x-moominC: "⠀⠳⠴⣙⢄⠀⢀⡠⣣⠃⠈⠑⢤⡄⠀⡸⠂⠀⠀⠀⠀⠀⠀" + x-moominD: "⠀⠀⠀⠀⠑⠋⠓⠊⠁⠀⠀⠀⠓⠒⠉⠀⠀⠀⠀⠀⠀⠀⠀" git: name: "git.dybiec.info" http_redirect: true 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 %} } -- cgit v1.2.3