ALLOWED_HOSTNAMES environment variable breaks app startup
-
In our Cal.com app logs, I noticed these two lines:
WARN orgDomains.ts Match of WEBAPP_URL with ALLOWED_HOSTNAME failed ... ... ALLOWED_HOSTNAMES: []I modified the
envfile to specifyALLOWED_HOSTNAMESusing the format demonstrated upstream (see .env.example#L64), but this made the app fail on startup.I suspect that the issue here may be that the requested list syntax (
'"a","b","c"') is somehow getting modified when Cloudron'senvfile is included in the Cal.com.envfile. -
S sparkwise referenced this topic on
-
Noting that this may be part of the problem underlying issue https://forum.cloudron.io/topic/9969/err_invalid_url-upstash-log-entries-sidequest-disable-telemetry-signup
-
@sparkwise https://github.com/calcom/cal.com/issues/12201 is the upstream issue (despite closed, the issue exists)
-
Problem solved! With these two in my
envfile, I'm no longer seeing the error messages:
NEXT_PUBLIC_WEBAPP_URL=https://cal.example.com
ALLOWED_HOSTNAMES='"example.com","cal.example.com"'
(I suspect that the first hostname is sufficient on its own. Haven't yet tried removing the second one.) -
N nebulon marked this topic as a question on
-
N nebulon has marked this topic as solved on
-
Nothing specific. I saw the errors in the log, and was curious to see if anything changed or behaved differently after addressing them. I didn't notice any changes, other than the logs being cleaner.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login