-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathserver-config-example.json
36 lines (35 loc) · 1.81 KB
/
server-config-example.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
Comments are welcome here
FYI:
- Model paths need to be exists before server start
- Please verify your hardware capabilities before starting the server
- Please verigy the selected libraries before starting the server
- On the first start, the server will generate a random sha256 key which is required to authenticate the clients. Do not share the hash with anyone
*/
{
// the tcp port to listen
"port": 8191,
// the host to listen, possible values: 0.0.0.0 -> listann all interfaces, 127.0.0.1 -> listen only on localhost, :: -> listen on all ipv6 interfaces, or any valid IP address and hostname
"host": "127.0.0.1",
// where the server will log
"logfile": "/var/log/stable-diffusion-server.log",
// where the diffusser process will log
"diffuser_logfile": "/var/log/stable-diffusion-diffuser.log",
// the backend HW accelerator, valid values: avx, avx2, avx512, cuda, vulkan -> the required libraries must be installed
"backend": "avx",
// maximum number of clients that can connect in parallel
"max_clients": 10,
// the maximum interval in seconds to wait the client to send an authentication request
"unauthorized_timeout": 4,
// where the connected client's info and image generation data (jobs, images) stored
"data_path": "/var/lib/stable-diffusion-server",
"model_paths": {
"controlnet": "/var/lib/stable-diffusion-server/models/controlnet",
"embedding": "/var/lib/stable-diffusion-server/models/embeddings",
"esrgan": "/var/lib/stable-diffusion-server/models/esrgan",
"lora": "/var/lib/stable-diffusion-server/models/loras",
"checkpoints": "/var/lib/stable-diffusion-server/models/checkpoints",
"taesd": "/var/lib/stable-diffusion-server/models/taesd",
"vae": "/var/lib/stable-diffusion-server/models/vae"
}
}