Skip to content
Snippets Groups Projects
Verified Commit a48f4625 authored by Evangelos Foutras's avatar Evangelos Foutras :smiley_cat:
Browse files

syncrepo: add X-Served-By header to geo mirrors

Potentially useful to quickly know which mirror we're talking to.
parent a6c56d65
No related branches found
No related tags found
No related merge requests found
Pipeline #17409 passed
......@@ -17,6 +17,10 @@ server {
ssl_certificate_key /etc/letsencrypt/live/{{ domain }}/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/{{ domain }}/chain.pem;
{% if 'geo_mirrors' in group_names and domain == geo_mirror_domain %}
add_header X-Served-By "{{ inventory_hostname }}";
{% endif %}
autoindex on;
}
{% endfor %}
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