forked from mtusi2026/mtusi2026lab7
ЛР 7: TLS, mTLS, OpenBao и безопасность — на 3
This commit is contained in:
Executable
+7
@@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
install -d -o postgres -g postgres -m 0700 /run/pg-tls
|
||||
install -o postgres -g postgres -m 0600 /run/tls/server.key /run/pg-tls/server.key
|
||||
install -o postgres -g postgres -m 0644 /run/tls/server.crt /run/pg-tls/server.crt
|
||||
exec docker-entrypoint.sh postgres -c ssl=on -c ssl_cert_file=/run/pg-tls/server.crt \
|
||||
-c ssl_key_file=/run/pg-tls/server.key -c hba_file=/run/config/pg_hba.conf
|
||||
Reference in New Issue
Block a user