ruma / homeserver

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

Look for config file in /etc #196

Open agraven opened 4 years ago

agraven commented 4 years ago

It would be a nice addition if ruma would also look for a config file in /etc or /etc/ruma or similar, as it would make the server setup less dependent on the servers working directory, and is also standard behaviour for a "well-behaved" unix service.

jimmycuadra commented 4 years ago

I'm in favor of this. More specifically we should probably follow the XDG spec for configuration data: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

vbrandl commented 4 years ago

I've used the xdg crate before in a small project and it worked fine. This could help here, too

jeltz commented 4 years ago

I am all for following the XDG standard for desktop programs and command line tools but I do not think virtually any daemon follows the XDG standard (which says that config should be under /etc/xdg), so I think following it will just confuse more people than it will help and Ruma will be the weird exception.