Skip to content

Commit 7a15cbf

Browse files
authored
v7.0.3 (#160)
Minor updates * Ensure global config during init * Run ssl-init for all domains after auto-adding from environment variables
1 parent 5f795bc commit 7a15cbf

File tree

4 files changed

+20
-5
lines changed

4 files changed

+20
-5
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.0.2
1+
7.0.3

overlay/etc/bf/init.d/21-ssl-conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1111
if [ "${PROXY_HARDEN}" = "1" ] ; then

overlay/etc/bf/init.d/22-ssl-init

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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

overlay/usr/lib/bf/proxy/init

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,20 @@ source ${BF_INC}/proxy-check.sh
1414

1515
source ${BF_INC}/proxy-init-domain.sh
1616
source ${BF_INC}/proxy-replace.sh
17+
source ${BF_INC}/proxy-setup-global.sh
1718
source ${BF_INC}/proxy-setup-nginx.sh
1819
source ${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
#======================================================================================================================

0 commit comments

Comments
 (0)