Skip to content

Commit

Permalink
Added support for multiple SSL domains
Browse files Browse the repository at this point in the history
  • Loading branch information
dlareau committed Apr 23, 2020
1 parent 45fb825 commit 953c016
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ services:
- media:/media
environment:
- DOMAIN
- SSL_DOMAINS
- CONTACT_EMAIL
tty: true

Expand Down
10 changes: 5 additions & 5 deletions docker/apacheShibForeground
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ chown _shibd:_shibd /etc/shibboleth/sp-*
echo "Starting shibd"
service shibd start
echo "Finished starting shibd"
if [ "$(ls -A /etc/letsencrypt/live)" ]; then
echo "Found existing certificate, not running certbot and assuming ssl is already enabled."
else
#if [ "$(ls -A /etc/letsencrypt/live)" ]; then
# echo "Found existing certificate, not running certbot and assuming ssl is already enabled."
#else
# certbot --apache -n --agree-tos --staging --email $CONTACT_EMAIL --domains $DOMAIN
certbot --apache -n --agree-tos --email $CONTACT_EMAIL --domains $DOMAIN
fi
certbot --apache -n --agree-tos --email $CONTACT_EMAIL --domains $SSL_DOMAINS --expand
#fi
a2enmod ssl
service apache2 stop

Expand Down

0 comments on commit 953c016

Please sign in to comment.