forked from mtusi2026/mtusi2026lab7
10 lines
403 B
Bash
10 lines
403 B
Bash
#!/bin/sh
|
|
set -eu
|
|
|
|
install -d -m 0700 -o postgres -g postgres /run/postgres-tls
|
|
install -m 0600 -o postgres -g postgres /run/tls/server.key /run/postgres-tls/server.key
|
|
exec /usr/local/bin/docker-entrypoint.sh postgres \
|
|
-c ssl=on -c ssl_min_protocol_version=TLSv1.2 \
|
|
-c ssl_cert_file=/run/tls/server.crt -c ssl_key_file=/run/postgres-tls/server.key \
|
|
-c hba_file=/etc/postgres/pg_hba.conf
|