Small Reverse Proxy Enhancements (#8)
* Only load certs for domains which are doing a proxy. 301 redirects do not need certs. * Fix tabs to spaces. * Add slash to match Hyperling.com script. * Fix comment capitalization.
This commit is contained in:
@ -18,7 +18,7 @@ echo "CERT_DIR=$CERT_DIR"
|
||||
mkdir -pv $CERT_DIR
|
||||
|
||||
# Loop over the proxy configuration files and ensure they have certs.
|
||||
ls $DIR/config/conf.d/*.* | while read file; do
|
||||
grep -l proxy_pass $DIR/config/conf.d/*.* | while read file; do
|
||||
filename=`basename $file`
|
||||
echo "*** Checking $filename ***"
|
||||
if [[ ! -d $CERT_DIR/$filename ]]; then
|
||||
|
Reference in New Issue
Block a user