forked from mtusi2026/mtusi2026lab7
solution
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user