Skip to content

Instantly share code, notes, and snippets.

@DuaneNielsen
Last active January 19, 2016 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DuaneNielsen/8b5efa11191396b6e100 to your computer and use it in GitHub Desktop.
Save DuaneNielsen/8b5efa11191396b6e100 to your computer and use it in GitHub Desktop.
Update keys on postgres docker volume
docker inspect postgres-data
cd /var/lib/docker/volumes/postgres-data/_data
cp -L /etc/letsencrypt/live/vixkings.com/fullchain.pem .
cp -L /etc/letsencrypt/live/vixkings.com/privkey.pem .
chmod 400 fullchain.pem
chmod 400 privkey.pem
@DuaneNielsen
Copy link
Author

in the postgressql.conf, you already set
ssl = on
ssl_cert_file = 'fullchain.pem'
ssl_key_file = 'privkey.pem'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment