forked from mtusi2026/mtusi2026lab7
ЛР 7: реализация мессенджера и сценарии проверки
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user