Skip to content

Fix env variables in convex.yaml - #7208

Closed
hahagu wants to merge 9 commits into
coollabsio:nextfrom
hahagu:patch-1
Closed

hahagu wants to merge 9 commits into
coollabsio:nextfrom
hahagu:patch-1

Conversation

@hahagu

@hahagu hahagu commented Nov 12, 2025 •

Copy link
Copy Markdown

Changes

  • Fix env variables CONVEX_CLOUD_ORIGIN and CONVEX_SITE_ORIGIN to be proper values.
    Otherwise, you will get a 404 error running queries/mutations from actions.

  • Also added nginx with SERVICE_URL_SITE for site url support. Without this, http actions will have to go to ${SERVICE_URL_BACKEND}/http

Issues

Fix env variables `CONVEX_CLOUD_ORIGIN` and `CONVEX_SITE_ORIGIN` to be proper values.

Otherwise, you will get a 404 error running queries/mutations from actions.

Also added `SERVICE_URL_SITE_3211` for site url support. Without this, http actions will have to go to `${SERVICE_URL_BACKEND}/http`
@ShadowArcanist ShadowArcanist added the ⚙️ Service Issues requesting or PRs adding/fixing service templates. label Nov 13, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Hi @hahagu! 👋

It appears to us that you are either adding a new service or making changes to an existing one.
We kindly ask you to also review and update the Coolify Documentation to include this new service or it's new configuration needs.
This will help ensure that our documentation remains accurate and up-to-date for all users.

Coolify Docs Repository: https://github.com/coollabsio/coolify-docs
How to Contribute a new Service to the Docs: https://coolify.io/docs/get-started/contribute/service#adding-a-new-service-template-to-the-coolify-documentation

@orenaksakal orenaksakal left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sacha-baron-cohen-thumbs-up-gif-by-amazon-prime-video

Commented out SERVICE_URL_SITE_3211 and updated CONVEX_SITE_ORIGIN note.
@hahagu

hahagu commented Nov 14, 2025

Copy link
Copy Markdown
Author

There's currently no way to have a single service with two ports have urls generated for on coolify.
Therefore, I have commented out SERVICE_URL_SITE_3211.

@hahagu
hahagu marked this pull request as draft November 14, 2025 23:09
There's currently no way to have a single service with two ports have urls generated for on coolify.

So, we make use of an nginx proxy for the site.
Fix accidentally edited variables in convex.yaml
@hahagu
hahagu marked this pull request as ready for review November 14, 2025 23:23
@Cinzya

Cinzya commented Nov 16, 2025

Copy link
Copy Markdown
Member

There's currently no way to have a single service with two ports have urls generated for on coolify.
Therefore, I have commented out SERVICE_URL_SITE_3211.

@hahagu does this mean users need to add those two URLs with their dedicated ports manually? Or did you find a different workaround? Would be good if you could include that information to the Coolify Docs, so people understand better what to do.

Comment thread templates/compose/convex.yaml Outdated
Comment thread templates/compose/convex.yaml Outdated
@Cinzya Cinzya added the 💤 Waiting for changes PRs awaiting changes from the author. label Nov 16, 2025
@hahagu

hahagu commented Nov 22, 2025

Copy link
Copy Markdown
Author

There's currently no way to have a single service with two ports have urls generated for on coolify.
Therefore, I have commented out SERVICE_URL_SITE_3211.

@hahagu does this mean users need to add those two URLs with their dedicated ports manually? Or did you find a different workaround? Would be good if you could include that information to the Coolify Docs, so people understand better what to do.

Implemented a nginx proxy as a workaround.

@hahagu
hahagu marked this pull request as draft November 22, 2025 08:27
@hahagu
hahagu marked this pull request as ready for review November 22, 2025 08:31
@hahagu

hahagu commented Nov 28, 2025

Copy link
Copy Markdown
Author

@Cinzya Please review, thanks!

@peaklabs-dev peaklabs-dev removed the 💤 Waiting for changes PRs awaiting changes from the author. label Jan 5, 2026
@KazBrekker1

Copy link
Copy Markdown

I tried the yml but i faced an issue opening the dashboard, for some reason initially it shows that the backend is not running, and then after the following log errors, it connects successfully.
image

@peaklabs-dev

Copy link
Copy Markdown
Member

The fact that we cannot generate multiple domains with different ports for one container is most likely a parser bug. I have let Andras know internally and once the bug is fixed the template can be properly updated without an additional proxy.

@github-actions github-actions Bot removed the ⚙️ Service Issues requesting or PRs adding/fixing service templates. label Jan 9, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Feb 9, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants