Complete lab 7 security infrastructure
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
: "${REDIS_TLS_NAME:?REDIS_TLS_NAME must be redis-cache or redis-broker}"
|
||||
mkdir -p /tmp/redis-tls
|
||||
cp "/run/tls/${REDIS_TLS_NAME}.crt" /tmp/redis-tls/server.crt
|
||||
cp "/run/tls/${REDIS_TLS_NAME}.key" /tmp/redis-tls/server.key
|
||||
cp /run/tls/service-ca.crt /tmp/redis-tls/service-ca.crt
|
||||
chown -R redis:redis /tmp/redis-tls
|
||||
chmod 644 /tmp/redis-tls/server.crt /tmp/redis-tls/service-ca.crt
|
||||
chmod 600 /tmp/redis-tls/server.key
|
||||
exec /usr/local/bin/docker-entrypoint.sh "$@"
|
||||
Reference in New Issue
Block a user