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

Unix support for connecting to appservice #16425

Open
4 tasks done
matrixbot opened this issue Dec 21, 2023 · 0 comments
Open
4 tasks done

Unix support for connecting to appservice #16425

matrixbot opened this issue Dec 21, 2023 · 0 comments

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 21, 2023

This issue has been migrated from #16425.


Nothing to fancy, shouldn't need any configuration changes on either end(I think).

I think the only thing of note is that for forming a request URI with a unix:// scheme, a : is appended to the end of the filename of the socket, to allow parsing out where the filename ends and the URL path begins(very similar to how Nginx does it). So:

  • unix:/path/to.socket with a request to /_matrix/app/v1/ping

internally as it's passed into the request function will look like:

  • unix:/path/to.socket:/_matrix/app/v1/ping.

Additionally, as a sanity check, the scheme can have multiple / between the unix: and the path to the socket file, as I've encountered multiple variants over the years(and there seems to be no real standard). So that means that if any of these will be stripped to a single / and look like the first item below:

  • unix:/path/to.socket
  • unix://path/to.socket
  • unix:///path/to.socket

Pull Request Checklist

Signed-off-by: Jason Little [email protected]

@matrixbot matrixbot changed the title Dummy issue Unix support for connecting to appservice Dec 22, 2023
@matrixbot matrixbot reopened this Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant