ruma / homeserver

A Matrix homeserver written in Rust.
https://www.ruma.io/
1.08k stars 41 forks source link

Add an option to the CLI to supply the path to the config file #151

Closed farodin91 closed 7 years ago

farodin91 commented 7 years ago

Possible with command line option or environment variable.

mujx commented 7 years ago

You mean something like ./ruma run -c /etc/ruma-config.json? If no argument is provided will fall back to the current functionality and search in the current directory?

farodin91 commented 7 years ago

Yes in both cases!

farodin91 commented 7 years ago

I would also add something like RUMA_CONFIG_FILE=/etc/ruma-config.json as environment variable. This make deploying with docker much easier.

jimmycuadra commented 7 years ago

I'm +1 on this. I was also thinking we should change where the config file is expected to be by default. Instead of the working directory, we should use app_dirs.

farodin91 commented 7 years ago

Possible it would be also cool to support configuration complete with ENV. For example: You can save all of configuration in a docket-compose file.