ResultadosDigitais / matrix

#matrix is the online open-source workplace inspired in sococo.com for distributed teams to have the experience of work together each day, side-by-side. No matter where team members might be. Working in an online workplace is even more productive when people are feeling in the same space.
MIT License
902 stars 238 forks source link

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

Open pcontezini opened 4 years ago

pcontezini commented 4 years ago

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

Verhaeg commented 4 years ago

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 commented 4 years ago

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

Verhaeg commented 4 years ago

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

juliemar commented 4 years ago

@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