Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

2.6 KB
Raw Blame
<form wire:submit="submit" class="application-settings-form">
    <x-unsaved-bar action="submit" />

    <x-application.settings-section title="General"
        description="S3-compatible destination used by database and volume backups.">
        <x-slot:actions>
            @can('validateConnection', $storage)
                <x-forms.button type="button" wire:click="testConnection">
                    <x-reicon name="check-circle" class="size-3.5" />
                    Validate connection
                </x-forms.button>
            @endcan
        </x-slot:actions>

        <div class="grid gap-4 lg:grid-cols-2">
            <x-forms.input canGate="update" :canResource="$storage" label="Name" id="name" />
            <x-forms.input canGate="update" :canResource="$storage" label="Description" id="description" />
            <div class="lg:col-span-2">
                @can('update', $storage)
                    {{-- Sends the endpoint right away, so the URL style below follows the provider. --}}
                    <div x-on:change="$wire.$commit()">
                        <x-forms.domain-input id="endpointParts" errorId="endpoint" host-label="Host"
                            host-placeholder="minio.internal or 192.168.1.50" />
                    </div>
                @else
                    <x-forms.input label="Endpoint" :value="$endpoint" disabled />
                @endcan
            </div>
            <x-forms.input canGate="update" :canResource="$storage" required label="Bucket" id="bucket" />
            <x-forms.input canGate="update" :canResource="$storage" required label="Region" id="region" />
            @if ($isPasswordHiddenForMember)
                <x-forms.input label="Access key" disabled value="Hidden (only admins can view)" />
                <x-forms.input label="Secret key" disabled value="Hidden (only admins can view)" />
            @else
                <x-forms.input canGate="update" :canResource="$storage" required type="password"
                    label="Access key" id="key" />
                <x-forms.input canGate="update" :canResource="$storage" required type="password"
                    label="Secret key" id="secret" />
            @endif
            <x-forms.checkbox canGate="update" :canResource="$storage" id="usePathStyleEndpoint"
                label="Use path-style URLs"
                helper="Turn this off for providers that only accept virtual-hosted-style URLs (bucket.endpoint). Coolify turns it off for Alibaba Cloud OSS, Tencent Cloud COS, and Volcengine TOS, and when the provider rejects path-style URLs." />
        </div>
    </x-application.settings-section>
</form>