matrix-docker-ansible-deploy
matrix-docker-ansible-deploy copied to clipboard
Update `matrix-appservice-irc` version
The update to 3.0 brings with it that it now uses MediaProxy.
Setting up media proxy is a bit above my level
I have rebased this, but would appreciate some help getting the authenticated media set up correctly
It seems that the media proxy is indeed part of the bridge, but that you need to set up e.g. traefik to route traffic to it. This is well above my paygrade.
@thomwiggers I had a shot at the traefik changes, not really tested though: https://github.com/JadedBlueEyes/matrix-docker-ansible-deploy/tree/patch-11
Thanks, that does look plausible... I hope I will have some time to test it.
The following gets posted to IRC
https://matrix.example.com/irc/v1/media/download/AXhzMyKXPbuQNpDBTy0kF9LvE0dTD7gjU9AbvfQaqoTBvqISAPERZVGQLJiz0IS9MrwQaNG33xyAY-bLjVrKSsBCeZheuENAAHdnZ3JzLm5sL3docFF4R0hhYXB1dmpXWW1rV092RmVVSA
But following it just gets a 404 :(
I haven't had time to dig into the logs yet.
The Traefik GUI dashboard is likely to show more hints
The Traefik GUI says the rule is Host(`example.com`) && PathPrefix(`/irc/`) so it appears the hostname is not properly specified (matrix is on a subdomain)
Using matrix_server_fqn_matrix instead of matrix_host brings me to:
Cannot GET /irc/v1/media/download/AXhzMyKXPbuQNpDBTy0kF9LvE0dTD7gjU9AbvfQaqoTBvqISAPERZVGQLJiz0IS9MrwQaNG33xyAY-bLjVrKSsBCeZheuENAAHdnZ3JzLm5sL3docFF4R0hhYXB1dmpXWW1rV092RmVVSA
which appears to result from the bridge, because:
sep 24 17:34:48 archeron matrix-appservice-irc[1084584]: INFO 15:34:48:214 [MediaProxy] GET /irc/v1/media/download/AduY_44ZkBJckUbjG2zsp9ZDKKyjFpnEJuC07BiWMnBjmm2QHUKgrL5JoUrRsjOcyEdV-P7R3cuLM6fdygaSL8lCeZoGljJQAHdnZ3JzLm5sL3RES2xpZWxPZHJYRGpjaHVmaXFXR3NvUQ 172.26.0.2 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.0 Safari/605.1.15
Going off https://github.com/matrix-org/matrix-appservice-irc/issues/1828 it may be that /irc needs to get stripped off the URL
From what I can see CI is just failing on some typos and a capital in a variable name (_certResolver)
yeah I simply haven't had time to look at that + some variable cleanup yet.
This has been working for me for a while now. With the last couple of fixes, I think this is ready to get reviewed and merged.