HomeFreeBSD

www/caddy{,-custom}: Fix startup with JSON configuration

Description

www/caddy{,-custom}: Fix startup with JSON configuration

Caddy supports a wide number of configuration file formats, including
its built-in "Caddyfile" format, and the "native" format is JSON.

When anything other than the native JSON format is used, caddy needs to
be passed the --adapter [formatname] flag (though it automatically
handles the case where the config filename is Caddyfile). However, as
JSON is the native format, there is no "json" adapter.

The added patch drops the --adapter flag when caddy_adapter is "json".

PR: 270120

Details

Provenance
Pawel Krawczyk <pawel.krawczyk@hush.com>Authored on Mar 11 2023, 7:57 PM
adamwCommitted on Mar 11 2023, 7:59 PM
Parents
R11:67e2d335976b: www/tuifeed: update to 0.3.2
Branches
Unknown
Tags
Unknown