node.ffho.net 467 B

12345678910111213141516171819202122
  1. geo $url {
  2. # default
  3. default hochstift.freifunk.net;
  4. # Legacy (ULA)
  5. fdca:ffee:ff12:132::/64 node.legacy.ffho.net;
  6. {%- set sites = salt['pillar.get']('sites') %}
  7. {% for site_name, site in sites.items()|sort %}
  8. # {{ site.name}}
  9. {{ site.prefix_v6 }} node.{{ site_name }}.ffho.net;
  10. {{ site.prefix_v4 }} node.{{ site_name }}.ffho.net;
  11. {% endfor %}
  12. }
  13. server {
  14. listen 80;
  15. listen [::]:80;
  16. server_name ~^node.(srv\.)?(in\.)?ffho.net$;
  17. return 302 http://$url;
  18. }