Skip to content

allow use of env placeholder in tls certificates #5962

@acuteaura

Description

@acuteaura

I'm using this directive to load certificates through systemd's LoadCredential= (reference here).

        tls "{env.CREDENTIALS_DIRECTORY}/cert.pem" "{env.CREDENTIALS_DIRECTORY}/cert.key"

Unfortunately, the placeholder does not seem to get resolved.

Dec 04 10:49:00 caddy[1517810]: Error: loading http app module: provision http: getting tls app: loading tls app module: provision tls: loading certificates: open {env.CREDENTIALS_DIRECTORY}/cert.pem: no such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions