Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy over unix sockets #16918

Closed
gbjbaanb opened this issue Feb 8, 2020 — with docs.microsoft.com · 1 comment · Fixed by #16942
Closed

Proxy over unix sockets #16918

gbjbaanb opened this issue Feb 8, 2020 — with docs.microsoft.com · 1 comment · Fixed by #16942
Assignees
Labels
doc-enhancement Pri2 Source - Docs.ms Docs Customer feedback via GitHub Issue

Comments

Copy link

gbjbaanb commented Feb 8, 2020

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.

@dotnet-bot dotnet-bot added ⌚ Not Triaged Source - Docs.ms Docs Customer feedback via GitHub Issue labels Feb 8, 2020
@guardrex guardrex self-assigned this Feb 8, 2020
@guardrex guardrex added this to the 2020 Q1 ends Mar 31 milestone Feb 8, 2020
@guardrex
Copy link
Collaborator

guardrex commented Feb 8, 2020

Hi @gbjbaanb ...

the whole endpoints configuration section needs a little more clarity in this regard

WRT Kestrel config, only what we show in the topic is available today via config providers (e.g., appsettings files). There's in-design and in-progress work on it ....

I'll take your notes forward for the https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.1#bind-to-a-unix-socket section. Thanks for writing in on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-enhancement Pri2 Source - Docs.ms Docs Customer feedback via GitHub Issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants