File tree Expand file tree Collapse file tree 4 files changed +30
-6
lines changed Expand file tree Collapse file tree 4 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 1- 3.0.4
1+ 3.1.0
Original file line number Diff line number Diff line change 1- 3.0
1+ 3.1
Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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
1536cd ${PROXY_LIB}
1637s6-setuidgid www ./init && ./request
You can’t perform that action at this time.
0 commit comments