File: /home/kiwerkzeuge.de/public_html/config/stable-diffusion-client.php
<?php
return [
// Stable Diffusion WebUI API endpoint – dedizierte Instanz für Bildgenerator
'remote_endpoint' => 'http://plano.panomity.com:7887',
// API-Format: sdapi/v1 (SD WebUI REST API)
'api_base' => '/sdapi/v1',
// Optional bearer/basic token wenn der Service geschützt ist
'auth_header' => '',
// Timeout für Requests (Stable Diffusion kann länger dauern)
'timeout' => 300,
// GPU-Management: Modell vor Nutzung laden, danach entladen
'gpu_management' => true,
// Standard-Einstellungen für Text-zu-Bild
'txt2img_defaults' => [
'steps' => 20,
'cfg_scale' => 7,
'width' => 512,
'height' => 512,
'sampler_name' => 'DPM++ 2M Karras',
'batch_size' => 1,
],
// Standard-Einstellungen für Inpainting
'inpaint_defaults' => [
'steps' => 25,
'cfg_scale' => 7,
'denoising_strength' => 0.75,
'inpainting_fill' => 1,
'inpaint_full_res' => true,
'inpaint_full_res_padding' => 32,
'sampler_name' => 'DPM++ 2M Karras',
],
// LoRA-Registry (getrennt von XY-App)
'lora_registry' => __DIR__ . '/lora-registry.json',
// Training-Verzeichnis
'training_dir' => __DIR__ . '/../training/',
// Uploads-Verzeichnis
'uploads_dir' => __DIR__ . '/../uploads/',
// Dienststeuerung: bei Bedarf starten und nach Inaktivität automatisch stoppen
'service_control_enabled' => true,
'service_unit' => 'sd-webui',
'service_start_timeout' => 180,
'auto_stop_idle_seconds' => 120,
'service_activity_file' => '/tmp/sd-webui-last-activity.txt',
'extra_headers' => [
// 'X-API-Key: your-key-here'
],
];