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

ROOMS single line environment variable is tuff to use when you have too many rooms. #269

Open
pcontezini opened this issue Mar 25, 2020 · 4 comments

Comments

@pcontezini
Copy link

Hi there.

We are using Matrix massively and managing the rooms on the single line environment variable sucks.

I've built a little workaround to get the json from a multi line file and convert it to a single line file using underscore.

I've read in the source code that you do support loading it from a file but was not sure it was working because it was not included in the manual.

Here you can find the script, hope it helps: https://github.com/pcontezini/matrix-room-generator

@pcontezini pcontezini added the kind: enhancement New feature or request label Mar 25, 2020
@Verhaeg
Copy link
Contributor

Verhaeg commented Mar 26, 2020

It works having a file mapped, the file location is /var/app/file/matrix.room.web.json
I found that mapping to that location is way better than handling a large inline json with multi escape levels.

Beware that in this case you can't provide the ROOMS_SOURCE environment!

Using mapped files is easier to handle as well for Kubernetes ;)

@juliemar
Copy link
Contributor

@Verhaeg could you open a PR with an installation tutorial for Kubernetes?

@Verhaeg
Copy link
Contributor

Verhaeg commented Mar 26, 2020

Sure! Will check the README schema and see how to better provide that information!

@juliemar
Copy link
Contributor

juliemar commented Apr 7, 2020

@Verhaeg I just created a PR with an option to have an external file to configure the ROOMS_DATA in this case is possible to store in s3 or GCS

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

3 participants