docs enhancment
This commit is contained in:
parent
ff1b804cd6
commit
721b1a713a
|
@ -1,5 +1,6 @@
|
||||||
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
# Compiled Object files, Static and Dynamic libs (Shared Objects)
|
||||||
transmet
|
transmet
|
||||||
|
db/dbconf.yml
|
||||||
.project
|
.project
|
||||||
*~
|
*~
|
||||||
*.o
|
*.o
|
||||||
|
|
22
README.md
22
README.md
|
@ -18,9 +18,31 @@ go get github.com/dballard/transmet
|
||||||
|
|
||||||
sudo apt-get install postgres postgresql-contrib
|
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
|
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;
|
CREATE EXTENSION pgcrypto;
|
||||||
|
'''
|
||||||
|
|
||||||
put DB details in
|
put DB details in
|
||||||
db/dbconf.yml (copied from db/dbconf.EXAMPLE)
|
db/dbconf.yml (copied from db/dbconf.EXAMPLE)
|
||||||
|
|
Loading…
Reference in New Issue