Skip to content

Commit 9bf4c62

Browse files
authored
v3.1.0 (#74)
# New features * Allowing individual SSL certificate to be regenerated * Adding custom configuration support to proxy conf
1 parent 57e7e87 commit 9bf4c62

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0.4
1+
3.1.0

VERSION_MINOR

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.0
1+
3.1

overlay/etc/bf/templates/nginx-proxy.conf.esh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ server {
4545
# include secure headers
4646
include helpers/proxy-secure-headers.conf;
4747

48+
# include custom configuration
49+
include <%= "${CUSTOM_CONF}/*.conf" %>;
50+
4851
# include standard helpers
4952
include helpers/nginx-ignore-favicon.conf;
5053
include helpers/nginx-static-files.conf;

overlay/usr/bin/bf/ssl-regenerate

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,33 @@ export BF_E=`basename ${0}`
55

66

77
#======================================================================================================================
8-
# Delete SSL files and reinitialise.
8+
# Remove specified domain (or all domains).
99
#======================================================================================================================
1010

11-
bf-echo "Removing SSL certificates and configuration..."
12-
bf-rmrf "${PROXY_SSL_CERTS}/*"
13-
bf-done
11+
if [ -n "${1-}" ] ; then
12+
13+
DOMAIN=${1}
14+
[[ ! -d "${PROXY_SSL_CERTS}/${DOMAIN}" ]] && bf-error "Domain ${DOMAIN} has not been setup for SSL."
15+
16+
bf-echo "Removing SSL certificates and configuration for ${DOMAIN}..."
17+
rm -r \
18+
"${PROXY_SSL_CERTS}/${DOMAIN}" \
19+
"${PROXY_SSL_CERTS}/${DOMAIN}.crt" \
20+
"${PROXY_SSL_CERTS}/${DOMAIN}.key"
21+
bf-done
22+
23+
else
24+
25+
bf-echo "Removing SSL certificates and configuration..."
26+
bf-rmrf "${PROXY_SSL_CERTS}/*"
27+
bf-done
28+
29+
fi
30+
31+
32+
#======================================================================================================================
33+
# Reinitialise SSL.
34+
#======================================================================================================================
1435

1536
cd ${PROXY_LIB}
1637
s6-setuidgid www ./init && ./request

0 commit comments

Comments
 (0)