Add a subdirectory glob for pem-dir, allow use under frontend config sections#294
Add a subdirectory glob for pem-dir, allow use under frontend config sections#294dmz-uk wants to merge 1 commit into
Conversation
…ob for frontend config
|
Couldn't replicate the test failure using gcc, but as reported elsewhere am getting test06-ticket-resume.sh failure on build with or without this change, which is a known issue? |
|
I tried for hours to get this to match pem files like for instance hitch.conf manually adding the pem file lines it works fine |
I don't know what to say -- we are using this and it scans subdirectories successfully, could it be the trailing /? pem-dir = "/etc/letsencrypt/live" |
|
Thanks dmz-uk eventually I got it to work, as you advised above I needed that *.pem |
Adds a new configuration option pem-dir-subdir-glob, which will (recursively) drag in matching subdirectories when scanning pem-dir. The semantics may not be great (matches directory name not full path), but it makes it a relatively simple change.
e.g.
pem-dir "/etc/hitch/pem.d"
pem-dir-subdir-glob "conf.d"
will also scan all subdirectories under /etc/hitch/pem.d named conf.d for pem files, "*" is generally more useful to include all subdirectories.
The change also allows pem-dir / pem-dir-glob / pem-dir-subdir-glob to be used inside frontend configuration sections.