@extends('layouts.app') @section('title', 'Sistem Ayarları') @section('content')
@if(session('success'))

{{ session('success') }}

@endif @if(session('error'))

{{ session('error') }}

@endif @if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Sistem Ayarları

Sistem yapılandırması ve ayarları

@if(auth()->user()->isAdmin())
@csrf
@endif
@if($group === 'github')

GitHub Repository & Versiyon Kontrolü

GitHub repository bilgilerinizi ve versiyon kontrolü ayarlarınızı yapılandırın. Sunucu üzerinden direkt main branch'i çekmek için bu ayarları kullanabilirsiniz.

Private Repository İçin Önemli

  • Private repository'ler için GitHub Personal Access Token zorunludur
  • Token oluştururken repo scope'unu seçin
  • Token'ı GitHub → Settings → Developer settings → Personal access tokens → Tokens (classic) bölümünden oluşturabilirsiniz
@if(!empty($settings))
@csrf

GitHub Repository Ayarları

@foreach($settings as $key => $setting) @if(!in_array($key, ['github.last_update_check', 'github.current_version', 'github.last_commit_hash']))
@if(!empty($setting['description']))

{{ $setting['description'] }}

@endif @if($key === 'github.token' && empty($setting['value']))

Private repository için bu alan zorunludur! Token olmadan versiyon kontrolü yapılamaz.

@endif
@if($setting['type'] === 'boolean')
@elseif($setting['type'] === 'json')
JSON
@else
@if($setting['is_encrypted'])
@endif
@endif
@endif @endforeach
@endif @if($gitVersionInfo && ($gitVersionInfo['current_version'] !== 'Bilinmiyor' || !empty($gitVersionInfo['last_commit_hash'])))

Mevcut Versiyon Bilgileri

Mevcut Versiyon
{{ $gitVersionInfo['current_version'] ?? 'Bilinmiyor' }}
Son Commit Hash
{{ $gitVersionInfo['last_commit_hash'] ?? '-' }}
Branch
{{ $gitVersionInfo['branch'] ?? 'main' }}
@if(!empty($gitVersionInfo['last_update_check']))
Son Kontrol
{{ \Carbon\Carbon::parse($gitVersionInfo['last_update_check'])->format('d.m.Y H:i') }}
@endif @if(!empty($gitVersionInfo['repo_url'])) @endif
@endif
@endif @if($group === 'system')

Sistem Bilgileri

@foreach($systemInfo as $key => $value)
{{ ucfirst(str_replace('_', ' ', $key)) }}
@if(is_bool($value)) {{ $value ? 'Aktif' : 'Pasif' }} @else {{ $value }} @endif
@endforeach

Queue Durumu

Connection
{{ $queueStatus['connection'] }}
Bekleyen İşler
{{ $queueStatus['pending_jobs'] }}
Başarısız İşler
{{ $queueStatus['failed_jobs'] }}

SSH Host Bazlı MySQL Root Şifreleri

Her SSH sunucusu için farklı MySQL root şifresi tanımlayabilirsiniz. Site oluşturulurken SSH host bilgisi girildiğinde, o host'a özel şifre otomatik olarak kullanılacaktır.

@csrf
@if(!empty($sshHostPasswords)) @foreach($sshHostPasswords as $sshHost => $passwordData)
@endforeach @endif

SSH Host Bazlı Veritabanı Ekleri

Her SSH sunucusu için farklı veritabanı bağlantı bilgileri tanımlayabilirsiniz. Site oluşturulurken SSH host bilgisi girildiğinde, o host'a özel veritabanı ekleri otomatik olarak kullanılacaktır.

@csrf
@if(!empty($sshHostDatabases)) @foreach($sshHostDatabases as $sshHost => $dbData)
@endforeach @endif

SSH Host Bilgileri

Her SSH sunucusu için bağlantı bilgileri tanımlayabilirsiniz. Site oluşturulurken SSH host seçildiğinde, o host'a özel bilgiler otomatik olarak kullanılacaktır.

@csrf
@if(!empty($sshHostInfos)) @foreach($sshHostInfos as $sshHost => $hostData)

SSH anahtarınız tanımlıysa boş bırakabilirsiniz.

@endforeach @endif
@if($group === 'mail' && auth()->user()->isAdmin())

Mail Ayarları Testi

Mail ayarlarınızı test etmek için bir test e-postası gönderebilirsiniz.

@endif @if($group === 'github' && !empty($settings))
@csrf

GitHub Repository Ayarları

@foreach($settings as $key => $setting)
@if(!empty($setting['description']))

{{ $setting['description'] }}

@endif @if($key === 'github.token' && empty($setting['value']))

Private repository için bu alan zorunludur! Token olmadan versiyon kontrolü yapılamaz.

@endif
@if($setting['type'] === 'boolean')
@elseif($setting['type'] === 'json')
JSON
@else
@if($setting['is_encrypted'])
@endif
@endif
@endforeach
@endif @if($group !== 'github' && !empty($settings) && auth()->user()->isAdmin())
@csrf

@if($group === 'mail') E-posta Ayarları @elseif($group === 'whm') WHM API Ayarları @else Sistem Ayarları @endif

@foreach($settings as $key => $setting)
@if(!empty($setting['description']))

{{ $setting['description'] }}

@endif
@if($setting['type'] === 'boolean')
@elseif($setting['type'] === 'json')
JSON
@else
@if($setting['is_encrypted'])
@endif
@endif
@endforeach
@endif @elseif($group !== 'system' && $group !== 'github') @if(!empty($settings))
@csrf

{{ $groups[$group] }}

@foreach($settings as $key => $setting)
@if(!empty($setting['description']))

{{ $setting['description'] }}

@endif
@if($setting['type'] === 'boolean')
@elseif($setting['type'] === 'json')
JSON
@else
@if($setting['is_encrypted'])
@endif
@endif
@endforeach
İptal

Değişiklikler kaydedildikten sonra geçerli olacaktır.

@else

Bu grup için ayar bulunmamaktadır.

Sayfa yenilendiğinde varsayılan ayarlar otomatik olarak oluşturulacaktır.

@endif @endif
@endsection