Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Oct 2019 00:03:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 241481] www/caddy allow options in rc file
Message-ID:  <bug-241481-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241481

            Bug ID: 241481
           Summary: www/caddy allow options in rc file
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: courtney.hicks1@icloud.com
                CC: fabian.freyer@physik.tu-berlin.de
                CC: fabian.freyer@physik.tu-berlin.de
             Flags: maintainer-feedback?(fabian.freyer@physik.tu-berlin.de
                    )

Created attachment 208590
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D208590&action=
=3Dedit
Revised caddy rc file

I just started using Caddy, and encountered an error where for whatever rea=
son,
one of my servers was failing the tls-alpn challenge when getting a cert fr=
om
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=3D"-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 attac=
hed
it.

Thank you,

Courtney

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-241481-7788>