HEX
Server: LiteSpeed
System: Linux houston.panomity.com 6.8.0-100-generic #100-Ubuntu SMP PREEMPT_DYNAMIC Tue Jan 13 16:40:06 UTC 2026 x86_64
User: nudepix (1011)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
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'
  ],
];