Skip to content

Allow for customizing (common_config) via caddyfiles #63

@nickchomey

Description

@nickchomey

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

We can customize common_config via $CADDY_SERVER_EXTRA_DIRECTIVES, but not via caddyfiles - the import at the end of Caddyfile.frankenphp only allows adding new blocks.

Describe your solution

I propose changing it to something like this

(common_config) {
	root {$DDEV_APPROOT}/{$DDEV_DOCROOT}
	encode zstd br gzip
	{$CADDY_SERVER_EXTRA_DIRECTIVES}
	import Caddyfile.d/common-extra/*.caddyfile
}

Describe alternatives

I couldnt find any way to do this from the normal Caddyfile.d/ directory

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions