Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.4
3.1.0
2 changes: 1 addition & 1 deletion VERSION_MINOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
3.1
3 changes: 3 additions & 0 deletions overlay/etc/bf/templates/nginx-proxy.conf.esh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ server {
# include secure headers
include helpers/proxy-secure-headers.conf;

# include custom configuration
include <%= "${CUSTOM_CONF}/*.conf" %>;

# include standard helpers
include helpers/nginx-ignore-favicon.conf;
include helpers/nginx-static-files.conf;
Expand Down
29 changes: 25 additions & 4 deletions overlay/usr/bin/bf/ssl-regenerate
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,33 @@ export BF_E=`basename ${0}`


#======================================================================================================================
# Delete SSL files and reinitialise.
# Remove specified domain (or all domains).
#======================================================================================================================

bf-echo "Removing SSL certificates and configuration..."
bf-rmrf "${PROXY_SSL_CERTS}/*"
bf-done
if [ -n "${1-}" ] ; then

DOMAIN=${1}
[[ ! -d "${PROXY_SSL_CERTS}/${DOMAIN}" ]] && bf-error "Domain ${DOMAIN} has not been setup for SSL."

bf-echo "Removing SSL certificates and configuration for ${DOMAIN}..."
rm -r \
"${PROXY_SSL_CERTS}/${DOMAIN}" \
"${PROXY_SSL_CERTS}/${DOMAIN}.crt" \
"${PROXY_SSL_CERTS}/${DOMAIN}.key"
bf-done

else

bf-echo "Removing SSL certificates and configuration..."
bf-rmrf "${PROXY_SSL_CERTS}/*"
bf-done

fi


#======================================================================================================================
# Reinitialise SSL.
#======================================================================================================================

cd ${PROXY_LIB}
s6-setuidgid www ./init && ./request
Expand Down