Skip to content

Commit

Permalink
Merge pull request #27 from devilbox/release-0.32
Browse files Browse the repository at this point in the history
Allow to set redirect to ssl on mass vhosts
  • Loading branch information
cytopia authored Dec 31, 2019
2 parents d2affb9 + 5b69c16 commit c4abc23
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ LABEL \
###
### Build arguments
###
ARG VHOST_GEN_GIT_REF=0.15
ARG VHOST_GEN_GIT_REF=0.16
ARG CERT_GEN_GIT_REF=0.7

ENV BUILD_DEPS \
Expand Down
5 changes: 3 additions & 2 deletions data/create-vhost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ VHOST_TPL="${4}"
CA_KEY="${5}"
CA_CRT="${6}"
GENERATE_SSL="${7}"
VERBOSE="${8:-}"
GEN_MODE="${8}"
VERBOSE="${9:-}"

if [ "${GENERATE_SSL}" = "1" ]; then
if [ ! -d "/etc/httpd/cert/mass" ]; then
Expand All @@ -29,7 +30,7 @@ if [ "${GENERATE_SSL}" = "1" ]; then
fi
fi

cmd="vhost_gen.py -p \"${VHOST_PATH}\" -n \"${VHOST_NAME}\" -c /etc/vhost-gen/mass.yml -o \"${VHOST_TPL}\" -s ${VERBOSE} -m both"
cmd="vhost_gen.py -p \"${VHOST_PATH}\" -n \"${VHOST_NAME}\" -c /etc/vhost-gen/mass.yml -o \"${VHOST_TPL}\" -s ${VERBOSE} -m ${GEN_MODE}"
if [ -n "${VERBOSE}" ]; then
echo "\$ ${cmd}"
fi
Expand Down
2 changes: 1 addition & 1 deletion data/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ if [ "${MASS_VHOST_ENABLE}" -eq "1" ]; then
fi

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

Expand Down

0 comments on commit c4abc23

Please sign in to comment.