🌐 feat: librechat.yaml from URL (#2064)

* feat: librechat.yaml from URL

* doc update: librechat.yaml from URL

* update dotenv.md - typo

* Update loadCustomConfig.js

* ci: specs for loadCustomConfig

* fix(processFileURL): safe destructuring of saveURL result

---------

Co-authored-by: fuegovic <fueg@live.ca>
Co-authored-by: Fuegovic <32828263+fuegovic@users.noreply.github.com>
This commit is contained in:
Danny Avila 2024-03-11 10:52:54 -04:00 committed by GitHub
parent f5a754c8be
commit ebcca16b94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 201 additions and 17 deletions

View file

@ -106,13 +106,15 @@ UID=1000
GID=1000
```
### librechat.yaml path
Set an alternative path for the LibreChat config file
### Configuration Path - `librechat.yaml`
Specify an alternative location for the LibreChat configuration file.
You may specify an **absolute path**, a **relative path**, or a **URL**. The filename in the path is flexible and does not have to be `librechat.yaml`; any valid configuration file will work.
> Note: leave commented out to have LibreChat look for the config file in the root folder (default behavior)
> **Note**: If you prefer LibreChat to search for the configuration file in the root directory (which is the default behavior), simply leave this option commented out.
```sh
CONFIG_PATH="/alternative/path/to/librechat.yaml"
# To set an alternative configuration path or URL, uncomment the line below and replace it with your desired path or URL.
# CONFIG_PATH="/your/alternative/path/to/config.yaml"
```
## Endpoints