Skip to content

Error: ambiguous config file format, config inside hidden folder #6373

@victordidenko

Description

@victordidenko

Similar to #6363 after update caddy doesn't start with error

2024/06/04 10:49:48.000	INFO	using config from file	{"file": ".serve/Caddyfile.preview"}
Error: ambiguous config file format; please specify adapter (use --adapter)
$ caddy version
v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=

Note that I use config from subfolder .serve

Is it possible that filepath.Base function does not handle that case correctly?
https://github.com/omalk98/caddy/blob/3f55efcfde09bc3d0a56597b1280dd2289805f69/cmd/main.go#L150

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions