coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
34.53k stars 1.88k forks source link

[Bug]: expose hostname via magic environment variables #4104

Open RayBB opened 2 weeks ago

RayBB commented 2 weeks ago

Request Type

New Feature

Description

I would like to create a service template for Readeck.

However, I cannot because it requires an environment variable of READECK_ALLOWED_HOSTS which only supports hosts like coolify.example.com and not FQDN like https://coolify.example.com

I have opened an issue with them to request supporting FQDN here.

However, I think it's likely other apps may also want a host too and not a FQDN so I thought I'd make the request here.

If it is possible to get just the host from the FQDN and use it in the service template please let me know and we can update the docs here.

peaklabs-dev commented 2 weeks ago

This is a know switch up and I have plans to fix this very soon. For now use SERVICE_URL_XXX that will give you the actual FQDN/ host like coolify.example.com.