feat: always have main domain have a cert

This commit is contained in:
Strix 2023-10-20 02:46:00 +02:00
parent db4f5eca5f
commit 25c797899b
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
2 changed files with 2 additions and 1 deletions

View file

@ -7,7 +7,7 @@ services:
build: custom/nginx build: custom/nginx
environment: environment:
CERTBOT_EMAIL: "webmaster@ixvd.net" CERTBOT_EMAIL: "webmaster@ixvd.net"
CERTBOT_DOMAINS: "" CERTBOT_DOMAINS: "localhost"
ports: ports:
- 80:80 - 80:80
- 443:443 - 443:443

View file

@ -4,5 +4,6 @@ if ! [ -d "servers/${1:-$HOSTNAME}" ]; then
echo "setting up servers/${1:-$HOSTNAME}..." echo "setting up servers/${1:-$HOSTNAME}..."
cp -r servers/skel/. 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/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 echo "server configuration for \`${1:-$HOSTNAME}\`." >servers/${1:-$HOSTNAME}/README.md
fi fi