Bug 241481 - www/caddy allow options in rc file
Summary: www/caddy allow options in rc file
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
Depends on:
Reported: 2019-10-25 00:03 UTC by courtney.hicks1
Modified: 2019-10-25 12:19 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (fabian.freyer)

Revised caddy rc file (3.21 KB, application/x-shellscript)
2019-10-25 00:03 UTC, courtney.hicks1
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description courtney.hicks1 2019-10-25 00:03:02 UTC
Created attachment 208590 [details]
Revised caddy rc file

I just started using Caddy, and encountered an error where for whatever reason, one of my servers was failing the tls-alpn challenge when getting a cert from Let's Encrypt. After digging I found that the solution was to add -disable-tls-alpn-challenge to the command_args variable in /usr/local/etc/rc.d/caddy, so the command was like this:

command_args="-p ${pidfile} /usr/bin/env ${caddy_env} ${procname} -disable-tls-alpn-challenge -cpu ${caddy_cpu} -log stdout -conf ${caddy_config_path} -agree -email ${caddy_cert_email} < /dev/null >> ${caddy_logfile} 2>&1"

Can we allow an option so users can set something like this from the /etc/rc.conf file? I made some modifications to the caddy rc file and attached it.

Thank you,