53 lines
3.1 KiB
PHP
53 lines
3.1 KiB
PHP
<div>
|
|
<form wire:submit='submit' class="flex flex-col">
|
|
<div class="flex items-center gap-2">
|
|
<h2>Configuration</h2>
|
|
<x-forms.button type="submit">
|
|
Save
|
|
</x-forms.button>
|
|
</div>
|
|
<div>General configuration for your Last Hour Cloud instance.</div>
|
|
|
|
<div class="flex flex-col gap-2 pt-4">
|
|
<div class="flex flex-wrap items-end gap-2">
|
|
<x-forms.input id="settings.fqdn" label="Instance's Domain" placeholder="https://lasthourhosting.org" />
|
|
<x-forms.input id="settings.instance_name" label="Instance's Name" placeholder="Last Hour Cloud" />
|
|
<x-forms.input id="settings.custom_dns_servers" label="DNS Servers" helper="DNS servers for validation FQDNs againts. A comma separated list of DNS servers." placeholder="9.9.9.9,149.112.112.112" />
|
|
<div class="md:w-96">
|
|
<x-forms.checkbox instantSave id="is_dns_validation_enabled" label="Validate DNS settings?" />
|
|
</div>
|
|
</div>
|
|
|
|
{{-- <div class="flex gap-2 ">
|
|
<x-forms.input type="number" id="settings.public_port_min" label="Public Port Min" />
|
|
<x-forms.input type="number" id="settings.public_port_max" label="Public Port Max" />
|
|
</div> --}}
|
|
</div>
|
|
<h2 class="pt-6">API</h2>
|
|
|
|
<div class="md:w-96">
|
|
<x-forms.checkbox instantSave id="is_api_enabled" label="Enabled" />
|
|
</div>
|
|
<x-forms.input id="settings.allowed_ips" label="Allowed IPs" helper="Allowed IP lists for the API. A comma separated list of IPs. Empty means you allow from everywhere." placeholder="1.1.1.1,8.8.8.8" />
|
|
</form>
|
|
|
|
<h2 class="pt-6">Advanced</h2>
|
|
<<<<<<< HEAD <div class="text-right md:w-96">
|
|
@if (!is_null(env('AUTOUPDATE', null)))
|
|
=======
|
|
<div class="flex flex-col py-6 text-right w-80">
|
|
@if(!is_null(env('AUTOUPDATE', null)))
|
|
>>>>>>> 794e9b53b (fix: replace copy and change app_name)
|
|
<x-forms.checkbox instantSave helper="AUTOUPDATE is set in .env file, you need to modify it there." disabled id="is_auto_update_enabled" label="Auto Update Last Hour Cloud" />
|
|
@else
|
|
<x-forms.checkbox instantSave id="is_auto_update_enabled" label="Auto Update Last Hour Cloud" />
|
|
@endif
|
|
<x-forms.checkbox instantSave id="is_registration_enabled" label="Registration Allowed" />
|
|
<x-forms.checkbox instantSave id="do_not_track" label="Do Not Track" />
|
|
<<<<<<< HEAD=======@if ($next_channel) <x-forms.checkbox instantSave helper="Do not recommended, only if you like to live on the edge." id="next_channel" label="Enable pre-release (early) updates" />
|
|
@else
|
|
<x-forms.checkbox disabled instantSave helper="Currently disabled. Do not recommended, only if you like to live on the edge." id="next_channel" label="Enable pre-release (early) updates" />
|
|
@endif
|
|
>>>>>>> 794e9b53b (fix: replace copy and change app_name)
|
|
</div>
|
|
</div> |