coolify/app/Livewire/Project/New
Andras Bacsai 4706bc23aa Refactor: Centralize service application prerequisites
Refactors the Appwrite and Beszel service-specific application settings
to use a centralized constant-based approach, following the same pattern
as NEEDS_TO_CONNECT_TO_PREDEFINED_NETWORK.

Changes:
- Added NEEDS_TO_DISABLE_GZIP constant for services requiring gzip disabled
- Added NEEDS_TO_DISABLE_STRIPPREFIX constant for services requiring stripprefix disabled
- Created applyServiceApplicationPrerequisites() helper function in bootstrap/helpers/services.php
- Updated all service creation flows to use the centralized helper:
  * app/Livewire/Project/Resource/Create.php (web handler)
  * app/Http/Controllers/Api/ServicesController.php (API handler - BUG FIX)
  * app/Livewire/Project/New/DockerCompose.php (custom compose handler)
  * app/Http/Controllers/Api/ApplicationsController.php (API custom compose handler)
- Added comprehensive unit tests for the new helper function

Benefits:
- Single source of truth for service prerequisites
- DRY - eliminates code duplication between web and API handlers
- Fixes bug where API-created services didn't get prerequisites applied
- Easy to extend for future services (just edit the constant)
- More maintainable and testable

Related commits: 3a94f1ea1 (Beszel), 02b18c86e (Appwrite)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 16:47:09 +01:00
..
DockerCompose.php Refactor: Centralize service application prerequisites 2025-11-28 16:47:09 +01:00
DockerImage.php Merge pull request #6879 from coollabsio/fix-docker-image-digest-cleanup 2025-10-15 10:49:30 +02:00
EmptyProject.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
GithubPrivateRepository.php fix(core): set default base_directory and include in submit method 2025-10-07 14:12:07 +02:00
GithubPrivateRepositoryDeployKey.php fix(github): update repository URL to point to the v4.x branch for development 2025-09-25 17:31:16 +02:00
PublicGitRepository.php fix(git): handle additional repository URL cases for 'tangled' and improve branch assignment logic 2025-09-30 12:22:57 +02:00
Select.php feat: display service logos in original colors with consistent sizing 2025-10-24 10:22:33 +02:00
SimpleDockerfile.php refactor(urls): replace generateFqdn with generateUrl for consistent URL generation across applications 2025-08-28 09:49:58 +02:00