forked from mtusi2026/mtusi2026lab7
Майорова Софья, БВТ2301, на 5. Трек1. HTTPS/TLS/ACL,18 API tests,13 pipeline groups,3 compromise runs,clean clone,persistence. Original tests/API contract preserved; residual CVE triage in REPORT/security.
7 lines
271 B
Bash
7 lines
271 B
Bash
#!/bin/sh
|
|
set -eu
|
|
cp /tls/tls.key /tmp/postgres.key
|
|
chmod 600 /tmp/postgres.key
|
|
chown postgres:postgres /tmp/postgres.key
|
|
exec docker-entrypoint.sh postgres -c ssl=on -c ssl_cert_file=/tls/tls.crt -c ssl_key_file=/tmp/postgres.key -c hba_file=/etc/postgresql/pg_hba.conf
|