ЛР 7: реализация мессенджера и сценарии проверки

This commit is contained in:
Russiankryt
2026-12-03 17:20:53 +03:00
parent 20afc2c790
commit 3dd0587e7d
57 changed files with 3470 additions and 55 deletions
+5
View File
@@ -0,0 +1,5 @@
local all all trust
hostssl all all 0.0.0.0/0 scram-sha-256
hostssl all all ::/0 scram-sha-256
hostnossl all all 0.0.0.0/0 reject
hostnossl all all ::/0 reject
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
mkdir -p /tmp/pg-tls
cp /run/secrets/db_crt /tmp/pg-tls/server.crt
cp /run/secrets/db_key /tmp/pg-tls/server.key
chown postgres:postgres /tmp/pg-tls/server.key /tmp/pg-tls/server.crt
chmod 0600 /tmp/pg-tls/server.key
exec docker-entrypoint.sh postgres + -c ssl=on + -c ssl_cert_file=/tmp/pg-tls/server.crt + -c ssl_key_file=/tmp/pg-tls/server.key + -c hba_file=/etc/postgresql/pg_tls_hba.conf