From 100626f09377dde19bdf4db615356d6286045a97 Mon Sep 17 00:00:00 2001 From: Raine Date: Fri, 20 Oct 2023 03:58:47 +0200 Subject: [PATCH] feat: simple tool that tells me which domains are used by who --- tools/org/domains-per-server.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tools/org/domains-per-server.sh diff --git a/tools/org/domains-per-server.sh b/tools/org/domains-per-server.sh new file mode 100644 index 0000000..e80e72f --- /dev/null +++ b/tools/org/domains-per-server.sh @@ -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 \ No newline at end of file