Lab7: HTTPS, mTLS, OpenBao, трек 2 PKI на оценку 5
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user