WIP, docs folder

This commit is contained in:
Adam Shamblin
2022-09-19 20:18:35 -06:00
parent 27a29e2af3
commit 90e51e70c7
4 changed files with 174 additions and 0 deletions

View File

@@ -752,6 +752,16 @@ impl Settings {
Ok(())
}
/// Determine default config path
///
/// In a unix-like environment, veilid-server will look for its config file
/// in /etc/veilid-server. If a config is not found in this location, it will
/// follow the XDG user directory spec, and look in `~/.config/veilid-server/`.
///
/// For Windows, a user-local config may be created at
/// `C:\Users\<user>\AppData\Roaming\Veilid\Veilid`, and for macOS, at
/// `/Users/<user>/Library/Application Support/org.Veilid.Veilid`
///
pub fn get_default_config_path() -> PathBuf {
#[cfg(unix)]
{