forked from mtusi2026/mtusi2026lab7
ЛР 7 — БВТ2302 — Макаренко — TLS и управление секретами
This commit is contained in:
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
cp /certs/db.key /tmp/pg.key
|
||||
chown postgres:postgres /tmp/pg.key
|
||||
chmod 600 /tmp/pg.key
|
||||
exec docker-entrypoint.sh postgres -c ssl=on -c ssl_cert_file=/certs/db.crt -c ssl_key_file=/tmp/pg.key -c hba_file=/etc/pg_hba.conf
|
||||
Reference in New Issue
Block a user