Skip to content

Commit 19d5f5d

Browse files
authored
Merge pull request #28 from devilbox/release-0.32
Allow to set redirect to ssl on mass vhosts
2 parents 0b106cc + cc6dece commit 19d5f5d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ LABEL \
1111
###
1212
### Build arguments
1313
###
14-
ARG VHOST_GEN_GIT_REF=0.15
14+
ARG VHOST_GEN_GIT_REF=0.16
1515
ARG CERT_GEN_GIT_REF=0.7
1616

1717
ENV BUILD_DEPS \

data/create-vhost.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ VHOST_TPL="${4}"
1111
CA_KEY="${5}"
1212
CA_CRT="${6}"
1313
GENERATE_SSL="${7}"
14-
VERBOSE="${8:-}"
14+
GEN_MODE="${8}"
15+
VERBOSE="${9:-}"
1516

1617
if [ "${GENERATE_SSL}" = "1" ]; then
1718
if [ ! -d "/etc/httpd/cert/mass" ]; then
@@ -29,7 +30,7 @@ if [ "${GENERATE_SSL}" = "1" ]; then
2930
fi
3031
fi
3132

32-
cmd="vhost_gen.py -p \"${VHOST_PATH}\" -n \"${VHOST_NAME}\" -c /etc/vhost-gen/mass.yml -o \"${VHOST_TPL}\" -s ${VERBOSE} -m both"
33+
cmd="vhost_gen.py -p \"${VHOST_PATH}\" -n \"${VHOST_NAME}\" -c /etc/vhost-gen/mass.yml -o \"${VHOST_TPL}\" -s ${VERBOSE} -m ${GEN_MODE}"
3334
if [ -n "${VERBOSE}" ]; then
3435
echo "\$ ${cmd}"
3536
fi

data/docker-entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ if [ "${MASS_VHOST_ENABLE}" -eq "1" ]; then
237237
fi
238238

239239
# Create watcherd sub commands
240-
watcherd_add="create-vhost.sh '%%p' '%%n' '${MASS_VHOST_TLD}' '%%p/${MASS_VHOST_TPL}/' '${CA_KEY}' '${CA_CRT}' '1' '${verbose}'"
240+
watcherd_add="create-vhost.sh '%%p' '%%n' '${MASS_VHOST_TLD}' '%%p/${MASS_VHOST_TPL}/' '${CA_KEY}' '${CA_CRT}' '1' '${MASS_VHOST_SSL_TYPE}' '${verbose}'"
241241
watcherd_del="rm /etc/httpd/vhost.d/%%n.conf"
242242
watcherd_tri="${HTTPD_RELOAD}"
243243

0 commit comments

Comments
 (0)