mirror of
https://github.com/coollabsio/coolify.git
synced 2025-12-28 05:34:50 +00:00
Fix:(service) Appwrite too many redirects error (#7364)
This commit is contained in:
commit
02b18c86e0
@ -102,13 +102,25 @@ class Create extends Component
|
||||
}
|
||||
});
|
||||
}
|
||||
$service->parse(isNew: true);
|
||||
$service->parse(isNew: true);
|
||||
|
||||
return redirect()->route('project.service.configuration', [
|
||||
'service_uuid' => $service->uuid,
|
||||
'environment_uuid' => $environment->uuid,
|
||||
'project_uuid' => $project->uuid,
|
||||
]);
|
||||
// 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,
|
||||
'environment_uuid' => $environment->uuid,
|
||||
'project_uuid' => $project->uuid,
|
||||
]);
|
||||
}
|
||||
}
|
||||
$this->type = $type->value();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user