docs enhancment

This commit is contained in:
Dan Ballard 2015-08-16 12:09:48 -07:00
parent ff1b804cd6
commit 721b1a713a
2 changed files with 23 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
# Compiled Object files, Static and Dynamic libs (Shared Objects)
transmet
db/dbconf.yml
.project
*~
*.o

View File

@ -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)