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
Listen on unix domain socket (like uwsgi) #61
Comments
Yes, unix domain sockets can be used in the same format as in nginx: "unix:/path/to/socket". The only issue now is the sockets are not deleted on unit exit or reconfiguration so you have to delete them manually. However we will fix this bug soon. |
@sandeep048 We will keep this issue open until we add the remaining features related to socket handling. Just to clarify further, the following would be a minimal socket config:
|
Will this functionality be implemented? |
How can one address a socket listener via the API? The equivalent of
does not seem to work. |
@lcts Addressing of such socket name isn't something supported right now. There's a plan to make it possible via URI-escaping, e.g.: Sorry, still no updates on automatic deletion. Frankly speaking, the full support of listening on unix domain sockets isn't our priority, since Unit is not meant to be put behind local reverse proxy. |
Does the commit fd6a6a5 fixed the problem of socket deletion? UPDATE: The commit does not solve the problem, I needed to remove the socket in startup script to get restart working. Please, fix this 3 years old problem. |
fyi re:
with
exec of
returns
change
exec of
returns
|
@pgnd Make sure you are using |
yep, sry; that was copy-n-paste of the wrong notes. :-/ with PUT, instead of post, it still fails, but with
rather than
|
@pgnd Please check the |
you're correct. the socket's still not getting deleted on unitd stop, and prevents the exec:
|
* added all-in-one(everything on https) config * Commented http sub-config
Can we use unix domain sockets for the unit listeners and use them in nginx proxy_pass?
This would radically simplify deployment of multiple webapps.
The text was updated successfully, but these errors were encountered: