mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-25 10:19:46 +00:00
Merge branch 'next' into shadow/fix-service-beszel
This commit is contained in:
@@ -81,7 +81,7 @@ class Create extends Component
|
||||
'destination_id' => $destination->id,
|
||||
'destination_type' => $destination->getMorphClass(),
|
||||
];
|
||||
if ($oneClickServiceName === 'cloudflared' || $oneClickServiceName === 'pgadmin') {
|
||||
if (in_array($oneClickServiceName, NEEDS_TO_CONNECT_TO_PREDEFINED_NETWORK)) {
|
||||
data_set($service_payload, 'connect_to_docker_network', true);
|
||||
}
|
||||
$service = Service::create($service_payload);
|
||||
@@ -112,6 +112,17 @@ class Create extends Component
|
||||
$appService->save();
|
||||
}
|
||||
}
|
||||
// For Appwrite services, disable strip prefix for services that handle domain requests
|
||||
if ($oneClickServiceName === 'appwrite') {
|
||||
$servicesToDisableStripPrefix = ['appwrite', 'appwrite-console', 'appwrite-realtime'];
|
||||
foreach ($servicesToDisableStripPrefix as $serviceName) {
|
||||
$appService = $service->applications()->whereName($serviceName)->first();
|
||||
if ($appService) {
|
||||
$appService->is_stripprefix_enabled = false;
|
||||
$appService->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return redirect()->route('project.service.configuration', [
|
||||
'service_uuid' => $service->uuid,
|
||||
|
||||
Reference in New Issue
Block a user