Skip to content

Commit

Permalink
update trusted domains also from letsencrypt config
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Jun 6, 2017
1 parent 8f8b4e4 commit 463eee9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions etc/nextcloudpi-config.d/letsencrypt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ configure()

/etc/letsencrypt/letsencrypt-auto -n --no-self-upgrade --apache --hsts --agree-tos -m $EMAIL_ -d $DOMAIN_
echo "* 1 * * 1 root /etc/letsencrypt/certbot-auto renew --quiet" > /etc/cron.d/letsencrypt-ncp

cd /var/www/nextcloud
sudo -u www-data php occ config:system:set trusted_domains 4 --value=$DOMAIN_

service apache2 reload
}

Expand Down

0 comments on commit 463eee9

Please sign in to comment.