geo $url { # default default hochstift.freifunk.net; {%- set sites = salt['pillar.get']('sites') %} {% for site_name, site in sites.items()|sort %} # {{ site.name}} {{ site.prefix_v6 }} node.{{ site_name }}.ffho.net; {{ site.prefix_v4 }} node.{{ site_name }}.ffho.net; {% endfor %} } server { listen 80; listen [::]:80; server_name ~^node.(srv\.)?(in\.)?ffho.net$; return 302 http://$url; }