NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

[Redis] Add support for masterauth via env var

351f4ce7
FreddleSpl0it <[email protected]> 1 year, 5 months ago
data/conf/redis/redis-conf.sh | 4 ++++
 docker-compose.yml            | 1 +
 2 files changed, 5 insertions(+)

Diff

diff --git a/data/conf/redis/redis-conf.sh b/data/conf/redis/redis-conf.sh
index 89b2a3ba..7e2672a3 100755
--- a/data/conf/redis/redis-conf.sh
+++ b/data/conf/redis/redis-conf.sh
@@ -5,4 +5,8 @@ requirepass $REDISPASS
 user quota_notify on nopass ~QW_* -@all +get +hget +ping
 EOF
 
+if [ -n "$REDISMASTERPASS" ]; then
+  echo "masterauth $REDISMASTERPASS" >> /redis.conf
+fi
+
 exec redis-server /redis.conf
diff --git a/docker-compose.yml b/docker-compose.yml
index cc4ee2b4..3440a99a 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -55,6 +55,7 @@ services:
       environment:
         - TZ=${TZ}
         - REDISPASS=${REDISPASS}
+        - REDISMASTERPASS=${REDISMASTERPASS:-}
       sysctls:
         - net.core.somaxconn=4096
       networks: