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

services/matrix: Adjust proxy settings and automatically purge remote media #38

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

e1mo
Copy link
Member

@e1mo e1mo commented Mar 25, 2024

According to the synapse docs1 the proxy_http_version 1.1; directive should be set. The nixpkgs niginx module only does so, when the top-level recommended proxy options is set.

Remote media that has not been acessed in 90 days will be purged. Sice purging remote media is currently doing enough to free up space, I'd suggest not purging local media for now (thus setting the retention to 10 years, thus virtually unlimited).

Footnotes

  1. https://matrix-org.github.io/synapse/latest/reverse_proxy.html

According to the synapse docs[^1] the `proxy_http_version 1.1;` directive
should be set. The nixpkgs niginx module only does so, when the
top-level recommended proxy options is set.

[^1]: https://matrix-org.github.io/synapse/latest/reverse_proxy.html
Remote media that has not been acessed in 90 days will be purged.
Sice purging remote media is currently doing enough to free up space,
I'd suggest not purging local media for now (thus setting the retention
to 10 years, thus virtually unlimited).
@e1mo e1mo requested a review from YtvwlD March 25, 2024 13:12
@e1mo e1mo requested a review from a team as a code owner March 25, 2024 13:12
@e1mo e1mo merged commit 88d1f73 into main Apr 15, 2024
1 check passed
@YtvwlD
Copy link
Member

YtvwlD commented Apr 16, 2024

Not sure whether ten years really is unlimited, but otherwise lgtm. (Sorry for seeing this just now.)

@e1mo
Copy link
Member Author

e1mo commented Apr 16, 2024

Yeah, 10 years is not an infinite amount of time. But I saw it as virtually unlimitd. We could also set it to say 100 years or so.

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

Successfully merging this pull request may close these issues.

2 participants