Updated Config settings (markdown)

JeLuF 2023-09-04 09:22:17 +02:00
parent 710e9ed877
commit a43087320f

@ -1,25 +1,24 @@
# Installation time settings # Installation time settings
## Network ports ## 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: 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:
```json ```yaml
{ net:
"net": { listen_port: 9000
"listen_port": 9000, listen_to_network: true
"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 ## 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: 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
{"render_devices": "auto", "update_branch": "main", "ui": {"open_browser_on_start": false} } 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 # Runtime settings
The runtime settings are stored in the following files: The runtime settings are stored in the following files:
* `scripts/config.json` * `config.yaml`
* `scripts/user_config.sh` * `scripts/user_config.sh`
* `scripts/user_config.bat` * `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. The user_config files can be used to set environment variables for some of the AI runtimes, e.g. for ROCm settings.