fix(service): correct Convex origin env vars and expose HTTP actions port - #10646
Merged
andrasbacsai merged 1 commit intoJun 29, 2026
Merged
Conversation
ShadowArcanist
approved these changes
Jun 13, 2026
Contributor
|
Hi @torstendngh! 👋 It appears to us that you are either adding a new service or making changes to an existing one. Coolify Docs Repository: https://github.com/coollabsio/coolify-docs |
Member
|
Thank you for the PR! 💜 |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
The Convex one click service template assigns the origin env vars to the wrong services: CONVEX_CLOUD_ORIGIN points at the dashboard URL and CONVEX_SITE_ORIGIN points at the backend API URL. Convex generates file upload URLs from CONVEX_CLOUD_ORIGIN, so every upload gets POSTed to the dashboard and fails with a 404 ("Uploaded file appears to be HTML content" in the dashboard, "Failed to fetch" in apps). I hit this myself when my app's image upload broke after moving from Convex cloud to self-hosted on Coolify.
This PR points CONVEX_CLOUD_ORIGIN at the backend, declares SERVICE_URL_SITE_3211 so Coolify generates a second domain for the HTTP actions port (3211, previously unreachable), and points CONVEX_SITE_ORIGIN at that new domain. Three lines changed.
Issues
convex.yaml#7208, closed when Coolify could not generate URLs for two ports on one service. That works now.Category
AI Assistance
If AI was used:
Testing
Deployed the modified compose on my own Coolify v4 instance (Hetzner VPS) running a Next.js + Convex app. Before the change, browser file uploads failed with a 404 because the upload URL pointed at the dashboard domain, matching the reports in #7989. After assigning a domain to the new SITE entry and redeploying: uploads work, stored files are servable, HTTP actions respond on the new domain, and the Convex CLI syncs the correct site URL into the env file.
Contributor Agreement
Important