File tree Expand file tree Collapse file tree 4 files changed +20
-5
lines changed Expand file tree Collapse file tree 4 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 1- 7.0.2
1+ 7.0.3
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export BF_E=`basename ${0}`
55
66
77#======================================================================================================================
8- # Generate SSL configuration file.
8+ # Generate Nginx SSL configuration file.
99#======================================================================================================================
1010
1111if [ "${PROXY_HARDEN}" = "1" ] ; then
Original file line number Diff line number Diff line change @@ -34,11 +34,16 @@ if [ ! -f "${PROXY_SSL_CONF}" ] && [ -n "${PROXY_AUTO_PRIMARY-}" ] && [ -n "${PR
3434 # if there are aliases enable canonical redirection
3535 [[ -n "${PROXY_AUTO_ALIASES-}" ]] && bf-env "PROXY_SSL_REDIRECT_TO_CANONICAL" "1"
3636
37- fi
37+ # initialise all domains (proxy plus auto)
38+ ssl-init -a
3839
3940
4041#======================================================================================================================
41- # Run initialisation script for the proxy domain.
42+ # Run initialisation script only for the proxy domain.
4243#======================================================================================================================
4344
44- ssl-init -d "proxy"
45+ else
46+
47+ ssl-init -d "proxy"
48+
49+ fi
Original file line number Diff line number Diff line change @@ -14,10 +14,20 @@ source ${BF_INC}/proxy-check.sh
1414
1515source ${BF_INC} /proxy-init-domain.sh
1616source ${BF_INC} /proxy-replace.sh
17+ source ${BF_INC} /proxy-setup-global.sh
1718source ${BF_INC} /proxy-setup-nginx.sh
1819source ${BF_INC} /proxy-setup-ssl.sh
1920
2021
22+ # ======================================================================================================================
23+ # Set up global SSL configuration.
24+ # ======================================================================================================================
25+
26+ bf-echo " Setting up getssl..." " proxy/init"
27+ setup-global
28+ bf-done " proxy/init"
29+
30+
2131# ======================================================================================================================
2232# Initialise Nginx and SSL for requested domain.
2333# ======================================================================================================================
You can’t perform that action at this time.
0 commit comments