forked from mtusi2026/mtusi2026lab7
Prepare verified laboratory 7 implementation and evidence
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
# Official root entrypoint drops to postgres after preparing its data directory.
|
||||
install -m 600 -o postgres -g postgres /source-tls/key.pem /run/tls/key.pem
|
||||
install -m 644 -o postgres -g postgres /source-tls/cert.pem /run/tls/cert.pem
|
||||
install -m 644 -o postgres -g postgres /source-tls/ca.crt /run/tls/ca.crt
|
||||
install -m 644 -o postgres -g postgres /source-tls/ca.crl /run/tls/ca.crl
|
||||
exec /usr/local/bin/docker-entrypoint.sh postgres -c listen_addresses='*' -c ssl=on -c ssl_min_protocol_version=TLSv1.2 -c ssl_cert_file=/run/tls/cert.pem -c ssl_key_file=/run/tls/key.pem -c ssl_ca_file=/run/tls/ca.crt -c ssl_crl_file=/run/tls/ca.crl -c hba_file=/config/pg_hba.conf -c password_encryption=scram-sha-256 -c log_statement=none -c log_connections=off -c log_disconnections=off
|
||||
Reference in New Issue
Block a user