ReverseProxy Fixes, Nextcloud MariaDB Upgrade (#7)

* Working on getting Reverse Proxy certs to work.

* Upgrade mariadb to 10.6.

* Checking if anything has missed a check in.

* Let's Encrypt is working now after moving the location directive to the conf.d files. Unsure why nginx.conf is not passing it along, so added it to the examples too.
This commit is contained in:
2023-07-21 22:23:46 -07:00
committed by GitHub
parent 3c46dfec01
commit 4c24c30526
9 changed files with 64 additions and 16 deletions

View File

@ -59,7 +59,7 @@ ls $DIR/config/conf.d/*.* | while read file; do
echo "*** Checking $filename ***"
if [[ -d $CERT_DIR/$filename ]]; then
echo "Getting the domains which need the cert."
domains=`grep server_name $file`
domains=`grep -v '$server_name' $file | grep server_name`
# Clean up the data by removing the directive and semi-colon, changing
# spaces to commas, and making sure there are no gaps.
@ -70,8 +70,8 @@ ls $DIR/config/conf.d/*.* | while read file; do
echo "Domains='$domains'"
echo "Attempting to create real certs at $CERT_DIR/$filename."
docker exec reverseproxy-certbot-1 certbot certonly -n --standalone \
--agree-tos -m $email -d $filename
docker exec reverseproxy-certbot-1 certbot certonly -n --webroot \
-w /etc/letsencrypt --agree-tos -m $email -d $filename
ls -lh $CERT_DIR/$filename/*
else