# the PG* variables are replaced by preprocessing, not done by nginx itself
daemon off;
pid        ./nginx.pid;

events {}

stream {
  server {
    listen unix:$PGPROXYHOST/.s.PGSQL.5432;
    proxy_timeout $PGPROXY_TIMEOUT;
    proxy_pass unix:$PGHOST/.s.PGSQL.5432;
  }
}
