Skip to content

Proposal: restrain the use of environment variables. #464

@eidoid

Description

@eidoid

For now, Environment variables in this form are substituted before Caddyfile parsing begins, which will cause problem as the environment variables are not valid components and can't be parsed properly before they are substituted.
You can even write something like this:

example.com {
	root * /var/www/wordpress
	encode
	php_fastcgi unix//run/php/php-version-fpm.sock
	file_server
{$CLOSEBRACKET}

Restrain the use of environment variables so it can be interpreted as one of the structural components describled here would be a good starting point, and enforcing such rule should encourage people to write better structured Caddyfile when using environment variables.

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