diff --git a/.gitignore b/.gitignore index 63160bd..17ac108 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Compiled Object files, Static and Dynamic libs (Shared Objects) transmet +db/dbconf.yml .project *~ *.o diff --git a/README.md b/README.md index 31a9fe1..079bab7 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,31 @@ go get github.com/dballard/transmet sudo apt-get install postgres postgresql-contrib +Setup postgres to hadle a local connection for transmet in pg_hba.conf +either: +'''host transmet transmet 127.0.0.1/32 md5''' +or a more liberal: +'''host all all 127.0.0.1/32 md5 ''' + +create ssl certs and put them somewhere + +enable SSL in postgresql.conf +''' +ssl = true +ssl_cert_file = 'WHER_YOU_PUT/server.crt' +ssl_key_file = 'WHERE_YOU_PUT/server.key' +''' + Create postgress DB and user +'''sh +sudo -u postgres +createuser -S -P -E transmet +createdb --owner transmet --encoding utf8 transmet +psql +\c transmet CREATE EXTENSION pgcrypto; +''' put DB details in db/dbconf.yml (copied from db/dbconf.EXAMPLE)