feat: always have main domain have a cert
This commit is contained in:
parent
db4f5eca5f
commit
25c797899b
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
Loading…
Reference in a new issue