Skip to content

add: support running admin server on unix socket - #5003

Merged
wolfgangwalther merged 3 commits into
PostgREST:mainfrom
wolfgangwalther:admin-server-unix-socket
Jun 14, 2026
Merged

add: support running admin server on unix socket#5003
wolfgangwalther merged 3 commits into
PostgREST:mainfrom
wolfgangwalther:admin-server-unix-socket

Conversation

@wolfgangwalther

Copy link
Copy Markdown
Member

This is useful when multiple instances run on the same machine, for
example behind a proxy. Unix sockets for web and admin servers can then
be put in the same folder for each instance.

Can be helpful when writing tests as well.

No need to run these with TCP and freeport, I believe.
The `if response` check a few rows down would not actually work without
initializing the variable first. It'd throw:

```
E       UnboundLocalError: cannot access local variable 'response' where
it is not associated with a value
```
This is useful when multiple instances run on the same machine, for
example behind a proxy. Unix sockets for web and admin servers can then
be put in the same folder for each instance.

Can be helpful when writing tests as well.
@wolfgangwalther
wolfgangwalther merged commit 2976eb0 into PostgREST:main Jun 14, 2026
33 checks passed
@wolfgangwalther
wolfgangwalther deleted the admin-server-unix-socket branch June 14, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants