feat: simple tool that tells me which domains are used by who
This commit is contained in:
parent
9e43927ac8
commit
100626f093
1 changed files with 8 additions and 0 deletions
8
tools/org/domains-per-server.sh
Normal file
8
tools/org/domains-per-server.sh
Normal 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
|
Loading…
Reference in a new issue