Skip to content

Content: Environment variable interpolation? #982

Description

@johndodev

Prerequisites check

  • I have searched existing documentation to verify this content doesn't already exist
  • I have checked for existing issues for this request

Type of content requested

Documentation

Content description

Hello,

I couldn't find the answer to this question: is environment variable interpolation possible?

Whatever the answer, I think it deserves a place in the doc.

If this is possible, it would allow us to define env variables with some parts replaced by others (notably by env variables defined by addons).

For example:

REDIS_SESSION_DSN="redis://:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}?timeout=0.5&read_timeout=0.5"
DATABASE_URL="${MYSQL_ADDON_URI}?serverVersion=${MYSQL_ADDON_VERSION}&charset=utf8mb4"

If it's not possible, could we add a short phrase mentioning that it isn't?

This content could be added at the end of the "#How do I use these variables?" section on this page: https://www.clever.cloud/developers/doc/develop/env-variables/

I can open a PR according to your response if necessary.

Thanks

Use case and target audience

No response

Technical details (for framework guides)

No response

Additional context (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions