#!/bin/sh

for f in servers/*/docker-compose.d/custom/nginx/conf.d/*.conf; do
  if grep -e "server_name.*\.localhost" $f; then
    echo "$f has a local server_name!"
    exit 1
  fi
done