Added GENERATE_CERTIFICATE variable and check and updated the proxy.json list also

This commit is contained in:
2022-10-21 13:22:12 +00:00
parent acd5903fd1
commit a19a5c63a7
2 changed files with 16 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
#!/bin/sh
GENERATE_CERTIFICATE=$GENERATE_CERTIFICATE
cd /proxy_config
DOMAIN=$1
@@ -25,7 +27,7 @@ ALLOWED_NETWORK=$(jq -r '.ALLOWED_NETWORK | select(.!="null") | join(" ")' $DOMA
ALTERNATE_LOCATION_PATH=$(jq -r .ALTERNATE_LOCATION_PATH $DOMAIN_SOURCE)
# check whether certificates exist or not
if [[ "$HTTPS_PORT" != "" ]]; then
if [[ "$HTTPS_PORT" != "" && "$GENERATE_CERTIFICATE" == "true" ]]; then
/scripts/check_certificates.sh "$DOMAIN";
fi