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

add a remote room file option #299

Merged
merged 5 commits into from
Apr 8, 2020
Merged

add a remote room file option #299

merged 5 commits into from
Apr 8, 2020

Conversation

juliemar
Copy link
Contributor

@juliemar juliemar commented Apr 7, 2020

Description

We have some issues talking about difficult to manage the environment variable ROOMS_DATA
Error when using custom ROOMs (docker compose env)
Matrix not reading ROOMS_DATA from env file
ROOMS single line environment variable is tuff to use when you have too many rooms

This PR I put a new option to read a remote .json file.

How to test?

Setup Environment variable ROOMS_SOURCE=REMOTE and the ROOMS_DATA with a link to the json room's source file.

Expected behavior

#matrix needs to make an office with the virtual rooms configured in the remote .json file.

@juliemar juliemar requested review from megatroom, angeliski and hashtegner and removed request for megatroom April 7, 2020 02:05
README.md Outdated
@@ -109,6 +109,10 @@ The **#matrix** project has some environment variables that important to define.
}
]

Other option is to have a remote rooms config file. You can to configure a `ROOMS_SOURCE=REMOTE` and config `ROOMS_DATA` like the example:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Little typo here:

Another option is to have a remote rooms config file. You can configure ROOMS_SOURCE=REMOTE and config ROOMS_DATA like the example:

Maybe also add a note that the file must be publicly accessible in this case.

README.md Outdated Show resolved Hide resolved
angeliski
angeliski previously approved these changes Apr 7, 2020
Copy link
Contributor

@angeliski angeliski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!
I tested and works nice!
A suggestion, we can verify in the app.healthcheck.js if the rooms are loaded correctly
I can do that in another PR if you prefer.

backend/app/controllers/rooms.controller.js Outdated Show resolved Hide resolved
@juliemar
Copy link
Contributor Author

juliemar commented Apr 8, 2020

A suggestion, we can verify in the app.healthcheck.js if the rooms are loaded correctly
I can do that in another PR if you prefer.

Good Idea @angeliski I don't have an idea how to do it :) I'll merge this PR and you can open another with this check 🚀

@juliemar juliemar merged commit 5771883 into develop Apr 8, 2020
@juliemar juliemar deleted the remote-room-data branch April 8, 2020 12:17
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.

3 participants