matrix-media-repo
matrix-media-repo copied to clipboard
Highly configurable multi-domain media repository for Matrix.
Much like https://github.com/turt2live/matrix-media-repo/issues/47, we should support having different cache options. Some options would be memory, filesystem, and redis.
At least, that's what the logs sort of claim: ``` time="2022-08-24 13:13:58.230 Z" level=info msg="Generating thumbnail" allowRemote=true contentLength=0 contentType="" host=kde.org mediaId=redacted_media_id method=GET queryString="height=250&method=scale&width=250" remoteAddr=redacted requestId=REQ-36 requestedAnimated=false requestedHeight=250 requestedMethod=scale requestedWidth=250 resource=/_matrix/media/r0/thumbnail/matrix.org/redacted_media_id...
Was surprised to find out that quite a few websites that definitely had working opengraph supports didn’t get previews when only configuring disallowedNetworks. It appears that this is caused by...
Bumps google.golang.org/protobuf from 1.32.0 to 1.33.0. [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=google.golang.org/protobuf&package-manager=go_modules&previous-version=1.32.0&new-version=1.33.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a...
When using an io.Pipe, it must be ensured that the pipe is drained. If it is not, all references required for the goroutine will not be freed by the garbage...
This is not even two weeks and there is nothing to infer or fix from it, since it is mostly the misconfiguration of other people. ![2024-03-10-22-08-35](https://github.com/t2bot/matrix-media-repo/assets/33086936/9093fc9b-f49e-4b36-900d-14a55a6dfeef)
See https://github.com/element-hq/synapse/issues/16970
Just some minor things I've noticed while perusing the codebase. This includes: - [x] redundant function (`util.ArrayContains`) - [x] string concatenation instead of format strings - [x] unusual error handler...