-
Notifications
You must be signed in to change notification settings - Fork 2
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
accuracy of the nginx routing rules with the recent changes in auth media and sliding sync? #20
Comments
Hey Wolf! Thanks! From what I can tell, the For "simplified sliding sync" (or "snake sync" as I like to call it) it looks like it's just another versioned endpoint for Are you using snake sync? Do you want to give that a try and let me know how it looks? |
well, okay, admittedly, I'm sorta perverting your ruleset; so it's entirely possible (and quite likely, in fact) that the problem is ME.... That being said It's taken me a bit to get things somewhat sorted
I'm using haproxy, and using an haproxy map file to route regex'ed paths to backend pools: (like I said, this is likely me)
so that works out to:
Which, strangely, seems to be matching more than it "should":
I'm guessing that some of your grouping logic (which I've not replicated in haproxy((yet))) does further routing (based on your room-scoped-worker paradigm, which is pretty slick! but I'm tryin to walk before flying :) ) Did you happen to have a list someplace of request URIs that aught match a given rule? https://spec.matrix.org/v1.11/client-server-api/ isn't really laid out in a fashion which makes it easy to grok what should go where. (at least, not for me) I ended up finding this gent's notes on haproxy routing: and adapted his script to inspect a mangled map of regexes and emit where it haproxy would send the connection based on the path and the regex that matched.... (I can share wot I have if it'd be useful but it's fugly) but I figured it mightn't hurt to ask if you had something you were working with as a routing validator regardless, thanks again for sharing your work! it really helped me. |
media uploads are still handled via /_matrix/media/v3/upload - so this currently fails with your location block https://spec.matrix.org/v1.11/client-server-api/#post_matrixmediav3upload i'm currently using a second location block to enable uploads:
|
Heya Tom!
HOLY HELL THIS WAS WELL PUT TOGETHER.
no seriously.... give yourself some credit... this was really nice.
You do some cool and elegantly trixy shit here.
Question...
how accurate is the nginx routing now that sliding-sync / pseudo-sliding-sync / authenticated media exist?
The text was updated successfully, but these errors were encountered: