forked from mtusi2026/mtusi2026lab7
9 lines
403 B
Bash
9 lines
403 B
Bash
#!/bin/sh
|
|
set -eu
|
|
install -o postgres -g postgres -m 600 /pki/service.key /run/pg-tls/server.key
|
|
install -m 644 /pki/service.crt /run/pg-tls/server.crt
|
|
exec docker-entrypoint.sh postgres -c ssl=on \
|
|
-c ssl_cert_file=/run/pg-tls/server.crt -c ssl_key_file=/run/pg-tls/server.key \
|
|
-c hba_file=/etc/lab-pg-hba.conf -c password_encryption=scram-sha-256 \
|
|
-c shared_buffers=64MB -c max_connections=60
|