feat: simple tool that tells me which domains are used by who

This commit is contained in:
Strix 2023-10-20 03:58:47 +02:00
parent 9e43927ac8
commit 100626f093
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -0,0 +1,8 @@
#!/bin/sh
for s in servers/*; do
echo "$s uses these domains..."
for f in $s/docker-compose.d/custom/nginx/conf.d/*.conf; do
grep "server_name" $f | sed 's/^.*server_name//' | sed 's/;$//'
done
done