- Add MANTISBT_ADMIN env variable to disable admin directory access.

This commit is contained in:
Arnaud G. GIBERT 2025-03-08 00:18:27 +01:00
parent e75651a893
commit 04c0b1f405
4 changed files with 17 additions and 7 deletions

View File

@ -22,9 +22,15 @@ ARG MANTISBT_VERSION=2.27.1
#---------------------------------------------------------------------------------------------------
ARG MANTISBT='#!/bin/bash \n\
\n\
chown -R apache:apache ${APACHE_DOC_ROOT} \n\
chown -R apache:apache ${APACHE_DOC_ROOT} \n\
chmod -R u-x,g-x,o-rwx,u+X,g+X ${APACHE_DOC_ROOT} \n\
\n\
sed -i -e "s%mailhub=mail%mailhub=${SMTP_SERVER}%" /etc/ssmtp/ssmtp.conf'
if [[ "${MANTISBT_ADMIN}" == "DISABLED" ]] \n\
then \n\
chown -R root:root ${APACHE_DOC_ROOT}/mantisbt/admin \n\
fi \n\
\n\
sed -i -e "s%mailhub=mail%mailhub=${SMTP_SERVER}%" /etc/ssmtp/ssmtp.conf '
#---------------------------------------------------------------------------------------------------

View File

@ -1,9 +1,11 @@
------------------------------------------------------------------------------------------------------------------------------------
Rx3-Docker/MantisBT V 1.0.1 - A. GIBERT - 2025/03/07
Rx3-Docker/MantisBT V 1.0.1 - A. GIBERT - 2025/03/08
------------------------------------------------------------------------------------------------------------------------------------
- Add default config in etc/mantisbt/config_inc.php.ref,
- Add ssmtp program and env variable to allow mail sending,
- Add MANTISBT_ADMIN env variable to disable admin directory access,
- Add var/www/mantisbt/images-local volume allowing logo addition,
- Add ssmtp program and SMTP_SERVER env variable to allow mail sending,
- Add php xmlreader & xmlwriter module tu support "Import/Export issues" plugin,
- Switch to docker_tools "mixed" volume mode.

View File

@ -70,6 +70,7 @@ services:
APACHE_GID: ${WA_GROUP_ID}
APACHE_DOC_ROOT: ${APACHE_DOC_ROOT}
MANTISBT_ADMIN: ${MANTISBT_ADMIN}
SMTP_SERVER: ${SMTP_SERVER}
WINDOW_TITLE: ${WINDOW_TITLE}
LOGO_IMG: ${LOGO_IMG}

View File

@ -120,10 +120,11 @@ if [[ "${APPL_ENV}" != "prd" ]]
then
APPL_URL="http://localhost:${WA_PORT_MAIN_EXT}/${APPL_NAME}/"
else
APPL_URL="https://arena-si.fr/tools/${APPL_NAME}/"
APPL_URL="https://private.arena-si.fr/tools/${APPL_NAME}/"
fi
MANTISBT_ADMIN="ENABLED"
#MANTISBT_ADMIN="DISABLED"
WA_IMG_EXT=./var/www/html/${APPL_NAME}/images-local
WA_IMG_INT=${APACHE_DOC_ROOT}/${APPL_NAME}/images-local