fix(application): sanitize service names for HTML form binding and ensure original names are stored in docker compose domains

This commit is contained in:
Andras Bacsai
2025-07-14 14:45:01 +02:00
parent 0b84792871
commit 3bb28c29be
2 changed files with 47 additions and 5 deletions

View File

@@ -51,7 +51,7 @@
<x-forms.input
helper="You can specify one domain with path or more with comma. You can specify a port to bind the domain to.<br><br><span class='text-helper'>Example</span><br>- http://app.coolify.io,https://cloud.coolify.io/dashboard<br>- http://app.coolify.io/api/v3<br>- http://app.coolify.io:3000 -> app.coolify.io will point to port 3000 inside the container. "
label="Domains for {{ str($serviceName)->headline() }}"
id="parsedServiceDomains.{{ $serviceName }}.domain"></x-forms.input>
id="parsedServiceDomains.{{ str($serviceName)->slug('_') }}.domain"></x-forms.input>
<x-forms.button wire:click="generateDomain('{{ $serviceName }}')">Generate
Domain</x-forms.button>
</div>