7 lines
369 B
Bash
7 lines
369 B
Bash
#!/bin/sh
|
|
set -eu
|
|
cp /pki/tls.key /tmp/postgres-tls.key
|
|
chown postgres:postgres /tmp/postgres-tls.key
|
|
chmod 600 /tmp/postgres-tls.key
|
|
exec /usr/local/bin/docker-entrypoint.sh postgres -c hba_file=/config/pg_hba.conf -c ssl=on -c ssl_cert_file=/pki/tls.crt -c ssl_key_file=/tmp/postgres-tls.key -c ssl_min_protocol_version=TLSv1.2 -c log_parameter_max_length_on_error=0
|