docker-postgis/setup.sh

21 wiersze
874 B
Bash
Czysty Zwykły widok Historia

2014-05-04 19:14:46 +00:00
# Add any additional setup tasks here
# These tasks are run as root
2015-08-11 21:54:59 +00:00
CONF="/etc/postgresql/9.4/main/postgresql.conf"
# Restrict subnet to docker private network
2015-08-11 21:54:59 +00:00
echo "host all all 172.17.0.0/16 md5" >> /etc/postgresql/9.4/main/pg_hba.conf
# Listen on all ip addresses
2015-08-11 21:54:59 +00:00
echo "listen_addresses = '*'" >> /etc/postgresql/9.4/main/postgresql.conf
echo "port = 5432" >> /etc/postgresql/9.4/main/postgresql.conf
# Enable ssl
echo "ssl = true" >> $CONF
#echo "ssl_ciphers = 'DEFAULT:!LOW:!EXP:!MD5:@STRENGTH' " >> $CONF
#echo "ssl_renegotiation_limit = 512MB " >> $CONF
echo "ssl_cert_file = '/etc/ssl/certs/ssl-cert-snakeoil.pem'" >> $CONF
echo "ssl_key_file = '/etc/ssl/private/ssl-cert-snakeoil.key'" >> $CONF
#echo "ssl_ca_file = '' # (change requires restart)" >> $CONF
#echo "ssl_crl_file = ''" >> $CONF