Skip to content

Proxy over unix sockets #16918

Closed
Closed
@gbjbaanb

Description

@gbjbaanb

This needs a bit more info to get it working.

The configuration of the Kestrel listener is unclear if it has to be made in code, or if it can be done in config. (in fact the whole endpoints configuration section needs a little more clarity in this regard).

the unix side of things needs the nginx proxy conf as well. It should be:

edit the nginx conf file, within the location block change the proxy_pass entry from the usual "http:://localhost:5000;" to "http://unix:/tmp/xyz.sock:/;" (the http: and colon at the end are very important) and ensure that the socket is writeable by nginx, eg "chmod go+w /tmp/xyz.sock". Where xyz.sock is the name of the socket used in ListenUnixSocket().


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions