]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: acme: add the acme section in the configuration parser
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 2 Apr 2025 08:54:19 +0000 (10:54 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 11 Apr 2025 23:29:27 +0000 (01:29 +0200)
commit077e2ce84c069e6083fb32bbb519c9be2002f395
treea9ad30380151a1c7d997f89195c8263391b9b8d2
parent20718f40b60f9aca33966c767caa4c4cd0cd9c4c
MINOR: acme: add the acme section in the configuration parser

Add a configuration parser for the new acme section, the section is
configured this way:

    acme letsencrypt
        uri https://acme-staging-v02.api.letsencrypt.org/directory
        account account.key
        contact foobar@example.com
        challenge HTTP-01

When unspecified, the challenge defaults to HTTP-01, and the account key
to "<section_name>.account.key".

Section are stored in a linked list containing acme_cfg structures, the
configuration parsing is mostly resolved in the postsection parser
cfg_postsection_acme() which is called after the parsing of an acme section.
Makefile
include/haproxy/acme-t.h [new file with mode: 0644]
include/haproxy/cfgparse.h
src/acme.c [new file with mode: 0644]