forked from jriou/coller
feat: Add clients base URL
- Add `clients_base_url` to define an alternative URL to download clients - Rename `clients_directory` to `clients_base_directory` to download clients locally based on the version. If `show_version` is disabled and `clients_base_directory` are both defined, a redirection to a remote URL with the "latest" version is chosen in order to avoid to disclose the server version. Fixes #43. Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
ab6b03a6d4
commit
b35828d909
4 changed files with 24 additions and 14 deletions
|
|
@ -41,7 +41,8 @@ The file format is **JSON**:
|
|||
* **tls_key_file** (string): Path to TLS key file to enable HTTPS
|
||||
* **ace_directory** (string): Serve [Ace](hhttps://ace.c9.io/) assets from this local directory (ex: "./node_modules/ace-builds"). See **Dependencies** for details.
|
||||
* **bootstrap_directory** (string): Serve [Bootstrap](https://getbootstrap.com/) assets from this local directory (ex: "./node_modules/bootstrap/dist"). See **Dependencies** for details.
|
||||
* **clients_directory** (string): Serve clients binaries from this local directory (ex: "./releases/1.2.0")
|
||||
* **clients_base_directory** (string): Serve clients binaries from this local base directory (ex: "./releases"). The version will be append to the directory. Ignored if `show_version` is disabled.
|
||||
* **clients_base_url** (string): Define the base URL to download clients (default "https://git.riou.xyz/jriou/coller/releases/download"). The version (or "latest") will be append.
|
||||
* **disable_editor** (bool): Disable Ace editor.
|
||||
|
||||
The configuration file is not required but the service might not be exposed to the public.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue