Proves the failure on https://github.com/PostgREST/postgrest/issues/4622. This doesn't require additional test infra, only nginx. Taking advantage of the `stream {}` context which is also compatible with unix socket besides TCP.
14 lines
273 B
Nginx Configuration File
14 lines
273 B
Nginx Configuration File
# 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;
|
|
}
|
|
}
|