22 lines
531 B
Bash
22 lines
531 B
Bash
#!/bin/sh
|
|
set -eu
|
|
mkdir -p /tls-run
|
|
cp /tls/redis.crt /tls-run/redis.crt
|
|
cp /tls/redis.key /tls-run/redis.key
|
|
cp /tls/ca.crt /tls-run/ca.crt
|
|
chmod 600 /tls-run/redis.key
|
|
chmod 644 /tls-run/redis.crt /tls-run/ca.crt
|
|
exec redis-server \
|
|
--tls-port 6379 \
|
|
--port 0 \
|
|
--tls-cert-file /tls-run/redis.crt \
|
|
--tls-key-file /tls-run/redis.key \
|
|
--tls-ca-cert-file /tls-run/ca.crt \
|
|
--tls-auth-clients no \
|
|
--appendonly yes \
|
|
--appendfsync everysec \
|
|
--dir /data \
|
|
--save 60 1 \
|
|
--bind 0.0.0.0 \
|
|
--protected-mode no
|