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

[Feature] Store media in yunohost user home/nextcloud folder #282

Open
Gredin67 opened this issue Aug 24, 2021 · 8 comments
Open

[Feature] Store media in yunohost user home/nextcloud folder #282

Gredin67 opened this issue Aug 24, 2021 · 8 comments

Comments

@Gredin67
Copy link

Synapse data can be huge. So are the backups of the app.
In homeserver.yaml it is possible to set custom path to store media.

We could add an option to store media data in the home folder of the corresponding Yunohost user. Even better, the media could be reached directly in Nextcloud in a given folder. I know that Nextcloud data are either stored in home or in specific folder, depending on an install parameter.

@lapineige
Copy link
Member

Don't you need to use nextcloud-cli to sync the changes in that case ? 🤔

@Josue-T
Copy link

Josue-T commented Aug 28, 2021

Data are already stored in /home/yunohost.app/matrix-synapse

@Gredin67
Copy link
Author

I meant would there be a way to store the Matrix media of a SSO/Yunohost user in his home folder ~, and even better in some sub-folder of his Nextcloud folder. The idea would be that media generated by his synapse chats would be considered in his storage quota.
I don't have a clue how Yunohost user data are stored, thus my idea may not make sense.

@MayeulC
Copy link

MayeulC commented Sep 23, 2021

Interesting feature request, this makes sense to me.

Maybe you could use an external media repository like https://matrix.org/docs/projects/other/matrix-media-repo (https://github.com/turt2live/matrix-media-repo)

I don't think this is a feature of that repository, so you could open a feature request there :)

@jchammons
Copy link

I have also come across the following article:

It makes mention of some potential things changing upstream:

I would think that a lot of what could be done to clean up is outside the scope of what the synapse_ynh package is intended for, however. Just my two cents.

@MayeulC
Copy link

MayeulC commented Oct 13, 2021

Actually matrix-media-repo seems to support quotas, so it would need to be wired up with yunohost's quota system.

t2bot/matrix-media-repo#100 -> t2bot/matrix-media-repo@eb625dd

@Gredin67
Copy link
Author

is there a label like "looking for help"? This feature would be great!

@Gredin67
Copy link
Author

@Thatoo is working on a nice workaround based on
https://gitlab.com/Sorunome/matrix-nextcloud-integration
and
https://github.com/gary-kim/riotchat/pull/369/files

He might build a yunohost package out of it, or it may make sense to integrate some things in the synapse_ynh package.
Wait and see..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants