Lab7: HTTPS, mTLS, OpenBao, трек 2 PKI на оценку 5
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Wladislava1
2026-11-17 00:25:48 +03:00
parent 20afc2c790
commit 54dcf70ea6
88 changed files with 8930 additions and 58 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/sh
set -eu
mkdir -p /var/lib/postgresql/tls
cp /tls/postgres.crt /var/lib/postgresql/tls/server.crt
cp /tls/postgres.key /var/lib/postgresql/tls/server.key
cp /tls/ca.crt /var/lib/postgresql/tls/ca.crt
chown -R postgres:postgres /var/lib/postgresql/tls
chmod 600 /var/lib/postgresql/tls/server.key
chmod 644 /var/lib/postgresql/tls/server.crt /var/lib/postgresql/tls/ca.crt
exec docker-entrypoint.sh postgres \
-c fsync=on \
-c synchronous_commit=on \
-c full_page_writes=on \
-c max_connections=80 \
-c shared_buffers=64MB \
-c ssl=on \
-c ssl_cert_file=/var/lib/postgresql/tls/server.crt \
-c ssl_key_file=/var/lib/postgresql/tls/server.key \
-c ssl_ca_file=/var/lib/postgresql/tls/ca.crt