From a43087320f0da321ff82862fe256c98795f4416f Mon Sep 17 00:00:00 2001 From: JeLuF Date: Mon, 4 Sep 2023 09:22:17 +0200 Subject: [PATCH] Updated Config settings (markdown) --- Config-settings.md | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/Config-settings.md b/Config-settings.md index 9eb5fe6..2087263 100644 --- a/Config-settings.md +++ b/Config-settings.md @@ -1,25 +1,24 @@ # Installation time settings ## Network ports -During installation, the installer tries to start a web server on port `0.0.0.0:9000`. If this port is already in use, the startup will fail. You can change the port that the installer will use by creating a file `scripts/config.json` before starting EasyDiffusion: -```json -{ - "net": { - "listen_port": 9000, - "listen_to_network": true - } -} +During installation, the installer tries to start a web server on port `0.0.0.0:9000`. If this port is already in use, the startup will fail. You can change the port that the installer will use by creating a file `config.yaml` in the EasyDiffusion directory before starting EasyDiffusion: +```yaml +net: + listen_port: 9000 + listen_to_network: true ``` -The `listen_to_network` setting configures whether to only listen on `localhost` (false) or on all interfaces (true). +The `listen_to_network` setting configures whether to only listen on `localhost` (false) or on all interfaces (true). Please note that indentation is important and the space characters in front of `listen_port` and `listen_to_network` are required. ## Prevent browser start -If you're installing on a headless system, you might need to prevent the browser startup that normally occurs during installation. To do so, create a file `config.json` in the `scripts` folder with this content: -``` -{"render_devices": "auto", "update_branch": "main", "ui": {"open_browser_on_start": false} } +If you're installing on a headless system, you might need to prevent the browser startup that normally occurs during installation. To do so, create a file `config.yaml` in the EasyDiffusion directory with this content: +```yaml +ui: + open_browser_on_start: false ``` +Please note that indentation is important and the space characters in front of `open_browser_on_start` are required. # Runtime settings The runtime settings are stored in the following files: -* `scripts/config.json` +* `config.yaml` * `scripts/user_config.sh` * `scripts/user_config.bat` The user_config files can be used to set environment variables for some of the AI runtimes, e.g. for ROCm settings. \ No newline at end of file