Skip to content

Commit

Permalink
v7.0.3 (#160)
Browse files Browse the repository at this point in the history
Minor updates
* Ensure global config during init
* Run ssl-init for all domains after auto-adding from environment variables
  • Loading branch information
bfren authored Sep 19, 2023
1 parent 5f795bc commit 7a15cbf
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.0.2
7.0.3
2 changes: 1 addition & 1 deletion overlay/etc/bf/init.d/21-ssl-conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export BF_E=`basename ${0}`


#======================================================================================================================
# Generate SSL configuration file.
# Generate Nginx SSL configuration file.
#======================================================================================================================

if [ "${PROXY_HARDEN}" = "1" ] ; then
Expand Down
11 changes: 8 additions & 3 deletions overlay/etc/bf/init.d/22-ssl-init
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ if [ ! -f "${PROXY_SSL_CONF}" ] && [ -n "${PROXY_AUTO_PRIMARY-}" ] && [ -n "${PR
# if there are aliases enable canonical redirection
[[ -n "${PROXY_AUTO_ALIASES-}" ]] && bf-env "PROXY_SSL_REDIRECT_TO_CANONICAL" "1"

fi
# initialise all domains (proxy plus auto)
ssl-init -a


#======================================================================================================================
# Run initialisation script for the proxy domain.
# Run initialisation script only for the proxy domain.
#======================================================================================================================

ssl-init -d "proxy"
else

ssl-init -d "proxy"

fi
10 changes: 10 additions & 0 deletions overlay/usr/lib/bf/proxy/init
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,20 @@ source ${BF_INC}/proxy-check.sh

source ${BF_INC}/proxy-init-domain.sh
source ${BF_INC}/proxy-replace.sh
source ${BF_INC}/proxy-setup-global.sh
source ${BF_INC}/proxy-setup-nginx.sh
source ${BF_INC}/proxy-setup-ssl.sh


#======================================================================================================================
# Set up global SSL configuration.
#======================================================================================================================

bf-echo "Setting up getssl..." "proxy/init"
setup-global
bf-done "proxy/init"


#======================================================================================================================
# Initialise Nginx and SSL for requested domain.
#======================================================================================================================
Expand Down

0 comments on commit 7a15cbf

Please sign in to comment.