From efa70f64c9833e69424f52197502d8568568b70b Mon Sep 17 00:00:00 2001 From: Saulo Date: Sat, 28 Dec 2024 01:42:44 -0300 Subject: [PATCH] chore: adjust cert file name --- create-certs.sh | 7 +++++-- docker-compose.yml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/create-certs.sh b/create-certs.sh index 238eac5..802e852 100755 --- a/create-certs.sh +++ b/create-certs.sh @@ -14,6 +14,9 @@ docker run --rm --name certbot -p 80:80 -v "/home/ubuntu/icecast/certs:/etc/lets sudo chmod -R 755 /home/ubuntu/icecast/certs/ -cat certs/live/yourdomain.com/fullchain.pem certs/live/yourdomain.com/privkey.pem > icecast.pem -chmod 666 icecast.pem +cat certs/live/$DOMAIN/fullchain.pem certs/live/$DOMAIN/privkey.pem > cert.pem +chmod 666 cert.pem +cd /home/ubuntu/icecast/ +docker compose down +docker compose up -d diff --git a/docker-compose.yml b/docker-compose.yml index e31e9e5..f1367fa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,4 +6,4 @@ services: container_name: "icecast2" volumes: - './icecast.xml:/etc/icecast2/icecast.xml:ro' - - './icecast.pem:/usr/share/icecast2/icecast.pem:ro' + - './cert.pem:/usr/share/icecast2/icecast.pem:ro'