Added more flexibility to nginx template creation.
Moved dbuser variable to PostgreSQL's vars