Merge branch 'master' into news-admin
Conflicts: .gitignore
This commit is contained in:
commit
df78114c6d
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