matrix icon indicating copy to clipboard operation
matrix copied to clipboard

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

Open pcontezini opened this issue 4 years ago • 4 comments

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 avatar Mar 25 '20 19:03 pcontezini

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 ;)

Verhaeg avatar Mar 26 '20 19:03 Verhaeg

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

juliemar avatar Mar 26 '20 21:03 juliemar

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

Verhaeg avatar Mar 26 '20 21:03 Verhaeg

@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

juliemar avatar Apr 07 '20 02:04 juliemar