Skip to content

Commit

Permalink
#24294 include in 23.01.7
Browse files Browse the repository at this point in the history
  • Loading branch information
erickgonzalez committed Sep 8, 2023
1 parent 38b1cb8 commit b9b2516
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docker/dotcms/ROOT/srv/00-config-defaults.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,20 @@ export DOT_MAIL_SMTP_SSL_PROTOCOLS=${DOT_MAIL_SMTP_SSL_PROTOCOLS:-"TLSv1.2"}
# Cookie Args
export DOT_SAMESITE_COOKIES=${DOT_SAMESITE_COOKIES:-"lax"}

#Tomcat Redis
if [[ "${TOMCAT_REDIS_SESSION_ENABLED}" == 'true' ]]; then
export TOMCAT_REDIS_SESSION_CONFIG=${TOMCAT_REDIS_SESSION_CONFIG:-'<Valve className="com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve" /><Manager className="com.orangefunction.tomcat.redissessions.RedisSessionManager" />'}
export TOMCAT_REDIS_SESSION_HOST=${TOMCAT_REDIS_SESSION_HOST:-"redis"}
export TOMCAT_REDIS_SESSION_PORT=${TOMCAT_REDIS_SESSION_PORT:-"6379"}
export TOMCAT_REDIS_SESSION_PASSWORD=${TOMCAT_REDIS_SESSION_PASSWORD:-""}
export TOMCAT_REDIS_SESSION_SSL_ENABLED=${TOMCAT_REDIS_SESSION_SSL_ENABLED:-"false"}
export TOMCAT_REDIS_SESSION_SENTINEL_MASTER=${TOMCAT_REDIS_SESSION_SENTINEL_MASTER}
export TOMCAT_REDIS_SESSION_SENTINELS=${TOMCAT_REDIS_SESSION_SENTINELS}
export TOMCAT_REDIS_SESSION_DATABASE=${TOMCAT_REDIS_SESSION_DATABASE:-"0"}
export TOMCAT_REDIS_SESSION_TIMEOUT=${TOMCAT_REDIS_SESSION_TIMEOUT:-"2000"}
export TOMCAT_REDIS_SESSION_PERSISTENT_POLICIES=${TOMCAT_REDIS_SESSION_PERSISTENT_POLICIES}
fi


# tomcat gzip compression
export CMS_COMPRESSION=${CMS_COMPRESSION:-"on"}
Expand Down
6 changes: 6 additions & 0 deletions docker/dotcms/ROOT/srv/30-override-config-props.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -e

# If enabled, add the required config for Tomcat Session Management with Redis
sed -i "s,\${TOMCAT_REDIS_SESSION_CONFIG},${TOMCAT_REDIS_SESSION_CONFIG},g" $TOMCAT_HOME/conf/context.xml
3 changes: 3 additions & 0 deletions docker/dotcms/ROOT/srv/OVERRIDE/tomcat/conf/context.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
<!--
<Manager pathname="" />
-->

${TOMCAT_REDIS_SESSION_CONFIG}

</Context>
1 change: 1 addition & 0 deletions docker/dotcms/ROOT/srv/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ umask 007

source /srv/00-config-defaults.sh
source /srv/20-copy-overriden-files.sh
source /srv/30-override-config-props.sh
source /srv/40-custom-starter-zip.sh


Expand Down
2 changes: 2 additions & 0 deletions hotfix_tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,5 @@ This maintenance release includes the following code fixes:
96. https://github.com/dotCMS/core/issues/24683 : Copy button on Page Edit portlet should copy the entire URL, not just the path #24683

**Release-23.01.7**

97. https://github.com/dotCMS/core/issues/24294 : Implement Redisson Session sharing #24294

0 comments on commit b9b2516

Please sign in to comment.