Fix:(service) Appwrite too many redirects error (#7364)
This commit is contained in:
commit
02b18c86e0
1 changed files with 18 additions and 6 deletions
|
|
@ -104,6 +104,18 @@ public function mount()
|
||||||
}
|
}
|
||||||
$service->parse(isNew: true);
|
$service->parse(isNew: true);
|
||||||
|
|
||||||
|
// 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', [
|
return redirect()->route('project.service.configuration', [
|
||||||
'service_uuid' => $service->uuid,
|
'service_uuid' => $service->uuid,
|
||||||
'environment_uuid' => $environment->uuid,
|
'environment_uuid' => $environment->uuid,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue