Updated Config settings (markdown)

JeLuF 2023-04-28 23:26:06 +02:00
parent e7851804ea
commit 99542d1d97

@ -1,27 +1,14 @@
# 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:
### Linux, MacOS
Start the installer using `SD_UI_BIND_PORT=1234 ./start.sh` (Replace 1234 with the port number you want to use). If you also want to limit the web server to only listen to `localhost`, you can use `SD_UI_BIND_PORT=1234 SD_UI_BIND_IP=127.0.0.1 ./start.sh`
Once the application is running, go to the "Settings" tab in the web interface and click "Save" to persist these settings. You can now use `./start.sh` to start the application and don't need to provide the config settings any more for each startup.
### Windows
First, open a `cmd` window, in which you run the following commands (replace `X` by the drive letter of your installation drive):
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
}
}
```
cd /d X:\stable-diffusion-ui
set SD_UI_BIND_PORT=1234
"Start Stable Diffusion UI.cmd"
```
If you also want to limit the web server to only listen to `localhost`, you can use:
```
cd /d X:\stable-diffusion-ui
set SD_UI_BIND_PORT=1234
set SD_UI_BIND_IP=127.0.0.1
"Start Stable Diffusion UI.cmd"
```
Once the application is running, go to the "Settings" tab in the web interface and click "Save" to persist these settings. You can now use `"Start Stable Diffusion UI.cmd"` to start the application and don't need to provide the config settings any more for each startup.
## 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:
@ -32,6 +19,6 @@ If you're installing on a headless system, you might need to prevent the browser
# Runtime settings
The runtime settings are stored in the following files:
* `scripts/config.json`
* `scripts/config.bat` (Windows)
* `scripts/config.sh` (Linux)
The `.bat` and `.sh` files contain settings required for the startup of the application. The `.json` file has settings needed at runtime.
* `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.