From 25c797899b9d904538edaf90b878b32d43753b50 Mon Sep 17 00:00:00 2001 From: Raine Date: Fri, 20 Oct 2023 02:46:00 +0200 Subject: [PATCH] feat: always have main domain have a cert --- servers/skel/docker-compose.d/docker-compose.yml | 2 +- tools/repo/setup-server-folder.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/skel/docker-compose.d/docker-compose.yml b/servers/skel/docker-compose.d/docker-compose.yml index 8328929..94f87ff 100644 --- a/servers/skel/docker-compose.d/docker-compose.yml +++ b/servers/skel/docker-compose.d/docker-compose.yml @@ -7,7 +7,7 @@ services: build: custom/nginx environment: CERTBOT_EMAIL: "webmaster@ixvd.net" - CERTBOT_DOMAINS: "" + CERTBOT_DOMAINS: "localhost" ports: - 80:80 - 443:443 diff --git a/tools/repo/setup-server-folder.sh b/tools/repo/setup-server-folder.sh index b2de0de..8cfeabd 100644 --- a/tools/repo/setup-server-folder.sh +++ b/tools/repo/setup-server-folder.sh @@ -4,5 +4,6 @@ if ! [ -d "servers/${1:-$HOSTNAME}" ]; then echo "setting up servers/${1:-$HOSTNAME}..." cp -r servers/skel/. servers/${1:-$HOSTNAME} sed -i "s/localhost/${1:-$HOSTNAME}.ixvd.net/g" servers/${1:-$HOSTNAME}/docker-compose.d/custom/nginx/conf.d/default.conf + sed -i "s/localhost/${1:-$HOSTNAME}.ixvd.net/g" servers/${1:-$HOSTNAME}/docker-compose.d/docker-compose.yml echo "server configuration for \`${1:-$HOSTNAME}\`." >servers/${1:-$HOSTNAME}/README.md fi \ No newline at end of file