-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
β
DoneIssues that are fixed and a PR is ready to be merged.Issues that are fixed and a PR is ready to be merged.π Confirmed BugVerified issues that have been reproduced by the team.Verified issues that have been reproduced by the team.
Description
Error Message and Logs
When creating a new GitHub App source with a URL configured in the instance settings, the "Webhook Endpoint" dropdown defaults to the server's IPv4 address instead of the configured domain.
Using this default results in the GitHub App being registered with IP-based redirect, callback, setup, and webhook URLs. This leads to:
- GitHub App redirects going to the raw IP instead of the domain
- Auto-deploy webhooks failing if the IP changes or if the instance is only accessible via domain
- Users needing to manually edit URLs in GitHub App settings after creation
The root cause is in two places:
app/Livewire/Source/Github/Change.php-mount()sets the default webhook endpoint to$this->ipv4even when$this->fqdnis available, so the configured instance URL is never pre-selectedresources/views/livewire/source/github/change.blade.phplines 245-256 β the<select>dropdown lists IPv4 first, making it the visual default
Note that base_url() in bootstrap/helpers/shared.php already correctly prioritizes the instance URL over IPv4, so this is inconsistent with the rest of the codebase.
Steps to Reproduce
- Set your instance URL in Settings (e.g. https://coolify.example.com)
- Go to Sources > Add GitHub App
- Observe the "Webhook Endpoint" dropdown defaults to http://:8000 instead of the configured URL
- Click "Register Now" without changing the dropdown
- The GitHub App is created with IP-based URLs instead of the domain
Example Repository URL
No response
Coolify Version
v4.0.0-beta.463.11
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Ubuntu 22.04
Additional Information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
β
DoneIssues that are fixed and a PR is ready to be merged.Issues that are fixed and a PR is ready to be merged.π Confirmed BugVerified issues that have been reproduced by the team.Verified issues that have been reproduced by the team.