55c7252327
Creates the user and the database provided by the environment variable. These are currently duplicated in postgres.env so we might want to find a way to have them in only one place. I tried my best at keeping the pg_hba.conf file secure for the server, but I am no expert so it'd be great if someone could check it out.
13 lignes
741 o
Django/Jinja
13 lignes
741 o
Django/Jinja
# TYPE DATABASE USER ADDRESS METHOD
|
|
# For debugging purposes
|
|
local "{{ nyaapantsu_dbname }}" "{{ nyaapantsu_user }}" md5
|
|
local all all peer
|
|
# IPv4 local connections:
|
|
host "{{ nyaapantsu_user }}" "{{ nyaapantsu_password }}" 127.0.0.1/32 md5
|
|
# IPv6 local connections:
|
|
host all all ::1/128 ident
|
|
# Allow replication connections from localhost, by a user with the
|
|
# replication privilege.
|
|
#local replication postgres peer
|
|
#host replication postgres 127.0.0.1/32 ident
|
|
#host replication postgres ::1/128 ident
|