notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Ukraine
FreshPorts needs to find a new hosting provide willing to take a 2U chassis and host it free of charge. This is part of the FreshPorts project. Preferably in the Austin area. This is not a primary server, but it used for development.
Port details
caddy Fast, cross-platform HTTP/2 web server with automatic HTTPS
2.5.2_2 www on this many watch lists=9 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout Version of this port present on the latest quarterly branch.
Maintainer: adamw@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2017-10-12 08:19:24
Last Update: 2022-08-04 15:58:48
Commit Hash: 92f0112
People watching this port, also watch:: nginx, poudriere, gitea, tmux, coreutils
License: APACHE20
Description:
SVNWeb : git : Homepage
pkg-plist: as obtained via: make generate-plist
Expand this list (5 items)
Collapse this list.
  1. bin/caddy
  2. @sample etc/caddy/Caddyfile.sample
  3. /usr/local/share/licenses/caddy-2.5.2_2/catalog.mk
  4. /usr/local/share/licenses/caddy-2.5.2_2/LICENSE
  5. /usr/local/share/licenses/caddy-2.5.2_2/APACHE20
Collapse this list.
Dependency lines:
  • caddy>0:www/caddy
To install the port:
cd /usr/ports/www/caddy/ && make install clean
To add the package, run one of these commands:
  • pkg install www/caddy
  • pkg install caddy
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: caddy
Flavors: there is no flavor information for this port.
distinfo:
Packages (timestamps in pop-ups are UTC):
caddy
ABIlatestquarterly
FreeBSD:11:aarch64--
FreeBSD:11:amd642.4.52.4.1
FreeBSD:11:armv6--
FreeBSD:11:i3862.4.52.4.1
FreeBSD:11:mips--
FreeBSD:11:mips64--
FreeBSD:12:aarch64-2.5.1_1
FreeBSD:12:amd642.5.2_22.5.1_1
FreeBSD:12:armv6--
FreeBSD:12:armv7--
FreeBSD:12:i3862.5.2_22.5.1_1
FreeBSD:12:mips--
FreeBSD:12:mips64--
FreeBSD:12:powerpc64--
FreeBSD:13:aarch642.5.2_22.5.1_1
FreeBSD:13:amd642.5.2_22.5.1_1
FreeBSD:13:armv6--
FreeBSD:13:armv72.5.2_22.5.1_1
FreeBSD:13:i3862.5.2_22.5.1_1
FreeBSD:13:mips--
FreeBSD:13:mips64--
FreeBSD:13:powerpc64--
FreeBSD:13:riscv64--
FreeBSD:14:aarch642.5.2_2-
FreeBSD:14:amd642.5.2_2-
FreeBSD:14:armv6--
FreeBSD:14:armv72.5.2_2-
FreeBSD:14:i3862.5.2_2-
FreeBSD:14:mips--
FreeBSD:14:mips64--
FreeBSD:14:powerpc64--
FreeBSD:14:riscv64--
 

Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. go119 : lang/go119
There are no ports dependent upon this port

Configuration Options:
Options name:

USES:

pkg-message:
For install:
If upgrading from < 2.3.0:
Master Sites:
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/caddyserver/caddy/tar.gz/v2.5.2?dummy=/
Collapse this list.
Notes from UPDATING
These upgrade notes are taken from /usr/ports/UPDATING
  • 2021-03-28
    Affects: users of www/caddy
    Author: adamw@FreeBSD.org
    Reason: 
      The default locations for caddy runtime files have changed.
    
      - Caddy's runtime log is now /var/log/caddy/caddy.log
        (was /var/log/caddy.log)
    
      - Automatic SSL certs are now stored in /var/db/caddy/data/caddy
        (was /root/.local/share/caddy)
    
      - Configuration autosaves are now stored in /var/db/caddy/config/caddy
        (was /root/.config/caddy)
    
      You can change these defaults. See /usr/local/etc/rc.d/caddy for the
      list of settings.
    
    

Number of commits found: 41

Commit History - (may be incomplete: see SVNWeb link above for full details)
DateByDescription
04 Aug 2022 15:58:48
 files touched by this commit commit hash:92f0112b86e3b0c3f45732f6fe6a774546cf3e6b  2.5.2_2
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Support go117 and go119
03 Aug 2022 21:35:13
 files touched by this commit commit hash:4476f89764d3ee73d216c2d56df149e8d4c62c24  2.5.2_2
Dmitri Goutnik (dmgk) search for other commits by this committer
all: Bump PORTREVISION after Go update

Bump Go ports PORTREVISION after GO_DEFAULT and lang/go118 update.
20 Jul 2022 14:23:26
 files touched by this commit commit hash:e915e756715f12e5e0e46993b1265f44690b4a90  2.5.2_1
Tobias C. Berner (tcberner) search for other commits by this committer
www: remove 'Created by' lines

A big Thank You to the original contributors of these ports:

  *
  *  <hvo.pm@xs4all.nl>
  *  Aaron Dalton <aaron@FreeBSD.org>
  *  Aaron Dalton <aaron@daltons.ca>
  *  Aaron LI <aly@aaronly.me>
  *  Aaron Zauner <az_mail@gmx.at>
  *  Abel Chow <achow@transoft.net>
  *  Adam Weinberger <adamw@FreeBSD.org>
  *  Ade Lovett <ade@FreeBSD.org>
  *  Adrian Steinmann <ast@marabu.ch>
  *  Akinori MUSHA aka knu <knu@idaemons.org>
(Only the first 15 lines of the commit message are shown above View all of this commit message)
14 Jul 2022 12:46:05
 files touched by this commit commit hash:153cb65ac8a05356245dd09d1ff48c2a6afafc5a  2.5.2_1
Dmitri Goutnik (dmgk) search for other commits by this committer
all: Bump PORTREVISION after lang/go{117,118} update
13 Jul 2022 10:42:22
 files touched by this commit commit hash:2f73369640ba438535336c8938a4f0b1a89ac4c4  2.5.2
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Update to 2.5.2

Changes:
This patch release fixes bugs, adds some new features, and makes
worthwhile enhancements. We recommend everyone test and upgrade!

Many improvements have been made to the reverse_proxy module.

Highlights:

    New /adapt admin endpoint: Use your installed config adapters via
    API in addition to the existing caddy adapt CLI command.

    New Etag/If-Match support for config API: Safely update your config
    concurrently and avoid collisions by using our unique Etag
    implementation.

    Rename copied headers from reverse_proxy: If you're using
    handle_response, you can more easily map headers to a different name
    for clients.

    Many HTTP matchers have been added to CEL: You can now use the logic
    of our HTTP request matchers in CEL expressions.
07 Jun 2022 21:56:10
 files touched by this commit commit hash:309cdeccd802bb370a42e80cc4468da17c8dab35  2.5.1_1
Dmitri Goutnik (dmgk) search for other commits by this committer
*/*: Bump port revisons after lang/go{117,118} update
06 May 2022 17:34:40
 files touched by this commit commit hash:e473855dc9b9766f13a2317a0795d80223d6e6db  2.5.1
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Update to 2.5.1
25 Apr 2022 22:29:18
 files touched by this commit commit hash:cb1a5833d0e7bd17dcd1d0dfd7d9497fc25bbd11  2.5.0
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Update to 2.5.0

Changes:

Highlights

* Reverse proxy: ✨ Dynamic upstreams, which is the ability to get the
  list of upstreams at every request (more specifically, every iteration
  in the proxy loop of every request) rather than just once at
  config-load time. Dynamic upstream modules can be plugged in to
  provide Caddy with the latest list of backends in real-time. Two
  standard modules have been implemented which can get upstreams from
  SRV and A/AAAA record lookups.

   *⚠️This deprecates the lookup_srv JSON field for upstreams (and srv+
(Only the first 15 lines of the commit message are shown above View all of this commit message)
16 Apr 2022 08:15:42
 files touched by this commit commit hash:6b6355edbe160f71a76422305bf46df9a66a51bf  2.4.6_3
Adam Weinberger (adamw) search for other commits by this committer
net/geoipupdate, www/caddy: Remove ca_root_nss

Now that 12.3 is the minimum supported, remove ca_root_nss hard
deps. For systems that have caroot, ca_root_nss is to my knowledge
vestigial and unused, and does nothing except install things.
30 Mar 2022 07:01:44
 files touched by this commit commit hash:d690b5102f75bf70e3cfb280a84c9f3eaf4ec653  2.4.6_2
Guangyuan Yang (ygy) search for other commits by this committer
*/*: Bump PORTREVISION after lang/go 1.18 update
24 Mar 2022 15:29:31
 files touched by this commit commit hash:a68aac13edbce5372b125a1d4b74712007e40c37  2.4.6_1
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Update packages

This fixes build with go 1.18.
09 Nov 2021 22:55:02
 files touched by this commit commit hash:ed7ee33cb1edf108a8c6c0b08f6f99daa0948360  2.4.6
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Update to 2.4.6
14 Oct 2021 21:30:53
 files touched by this commit commit hash:9cd6b28b6a80ffbd23cb3ebf09e57d6d5221dc72  2.4.5
Stefan Eßer (se) search for other commits by this committer
www/caddy: Add CPE information

Approved by:	portmgr (blanket)
03 Sep 2021 20:05:18
 files touched by this commit commit hash:b772a484ec27826236544b5b19035fa6ebc3f834  2.4.5
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Update to 2.4.5

Changes:
 - cmd: export CaddyVersion(), Commands() (#4316)
 - encode: ignore flushing until after first write (#4318)
 - go.mod: Update CertMagic
03 Sep 2021 13:01:58
 files touched by this commit commit hash:310623bb97f644b7a9a90c9e231574670edfa8f7  2.4.4
Tobias Kortkamp (tobik) search for other commits by this committer
*: Clean up some things

- Fix typos
- Remove duplicate variables
- Remove nop or unreferenced variables
- Add missing ports to the build
- Clean up commented PORTREVISION
- Add missing USES

Reported by:	portscan
31 Aug 2021 09:20:02
 files touched by this commit commit hash:68dbc2b1f34a656d3a99e0a56e34089aa2a231a3  2.4.4
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Update to 2.4.4

Changes:
  *  acmeserver: Don't set host for directory links by default
  *  acmeserver: Trim slashes from path prefix
  *  admin: Implement load_interval to pull config on a timer (#4246)
  *  admin: Sync server variables (fix #4260) (#4274)
  *  caddyfile: Better error message for missing site block braces (#4301)
  *  caddyfile: Error on invalid site addresses containing comma (#4302)
  *  caddyfile: keep error chain info in Dispenser.Errf (#4233)
  *  caddyhttp: Fix edgecase with auto HTTP->HTTPS logic (#4243)
  *  caddyhttp: Fix incorrect determination of gRPC protocol (#4236)
  *  caddyhttp: Updated the documentation for MatchQuery (#4295)
  *  caddytls: Remove "IssuerRaw" field
  *  cmd: Fix paths when using an env file (#4296)
(Only the first 15 lines of the commit message are shown above View all of this commit message)
20 Aug 2021 18:01:10
 files touched by this commit commit hash:56d86cea492d173e0e6304f96d49aeb5f1eb5065  2.4.3
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Update to 2.4.3
20 May 2021 13:10:58
 files touched by this commit commit hash:8ad46e2fad4a0f38a7a25105cd63bcf96740b20f  2.4.1
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Update to 2.4.1

Changes:

  A small patch release that contains a few noncritical but pleasant
  fixes (unless you're using /id/ endpoints in the admin API; then you
  should definitely get this update).

  admin: Reinstate internal redirect for /id/ requests
  caddyfile: Add parse error on site address with trailing {
  cmd: upgrade: inherit the permissions of the original executable
  httpcaddyfile: Fix automation policy consolidation again
  logging: Implement dial timeout for net writer
  reverseproxy: Set the headers in the replacer before handle_response
15 May 2021 12:19:37
 files touched by this commit commit hash:4b469199a77e2ca167474c7fce56db018b4eb9ed  2.4.0
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Use go:modules to reduce the massive GH_TUPLE
10 May 2021 22:33:42
 files touched by this commit commit hash:476b6c041a5b38e78d9f45609fb356635eb15d03  2.4.0
Adam Weinberger (adamw) search for other commits by this committer
www/caddy: Update to 2.4.0

Changes:

* Secure remote management. You can now enable secure remote access to
  Caddy's admin API! It uses TLS mutual authentication, and you can even
  define permissions for different users. PR #3994
* Config pull at start. Caddy can be configured to load a different
  config at startup. This is useful if your config is federated through
  a separate system that doesn't have the ability to push configs to
  Caddy. This feature is modular, so configurations can be loaded
  different ways! PR #3994
* Server identity management. Caddy can automatically manage its own
  server identity certificate, which can be used when negotiating TLS
  connections with peers. This is required when enabling the secure
(Only the first 15 lines of the commit message are shown above View all of this commit message)
06 Apr 2021 14:31:13
 files touched by this commit commit hash:135fdeebb99c3569e42d8162b265e15d29bd937d  2.3.0_1
Mathieu Arnold (mat) search for other commits by this committer
all: Remove all other $FreeBSD keywords.
06 Apr 2021 14:31:07
 files touched by this commit commit hash:305f148f482daf30dcf728039d03d019f88344eb  2.3.0_1
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
28 Mar 2021 19:34:03
Original commit files touched by this commit Revision:569408  2.3.0_1
adamw search for other commits by this committer
www/caddy: Change all caddy runtime locations

Thanks to work by scf, the caddy rc(8) script has been completely
rewritten and substantially improved, though this necessitated
changing all runtime locations.

Most importantly:
- The runtime log now lives in /var/log/caddy/ instead of /var/log,
  so that the logdir can be null-mounted

- Automatic SSL certs are now stored in /var/db/caddy/data/caddy,
  instead of /root/.local/share/caddy

Caddy uses freedesktop.org's XDG base dir specification, which
conflicts quite spectacularly with FreeBSD's hier(7). The most
sensible thing to do was to put the runtime data stores into
/var/db/caddy, though XDG needs XDG_DATA_HOME and XDG_CONFIG_HOME
to be separate dirs and caddy will create a .../caddy subdir in
each of them.
24 Mar 2021 03:30:27
Original commit files touched by this commit Revision:569090  2.3.0
adamw search for other commits by this committer
www/caddy: Sort GH_TUPLE
23 Mar 2021 23:25:09
Original commit files touched by this commit Revision:569072  2.3.0
adamw search for other commits by this committer
www/caddy: Fix fetch

No idea how I wound up listing the same package 5 times
with two different versions, but here we are.
21 Mar 2021 17:27:54
Original commit files touched by this commit Revision:568926  2.3.0
adamw search for other commits by this committer
www/caddy: Update to 2.3.0 and take maintainership

Thanks to Daniel Tihanyi for all his work maintaining this port!

While here, a number of cleanups:
- Simplify Makefile
- Remove pkg-message whose instructions were superseded by @sample
- Re-enable cgo. It seems to work fine now.
- Rename the rc(8) 'validate' subcommand to 'configtest' for clarity and
consistency
- Add a little more info to the sample Caddyfile
- Point to instructions for getting access logs working

Changes: https://github.com/caddyserver/caddy/releases/tag/v2.3.0

PR:		254436
Approved by:	Daniel Tihanyi (outgoing maintainer)
22 Oct 2020 06:38:09
Original commit files touched by this commit Revision:552937  2.2.1
lwhsu search for other commits by this committer
www/caddy: Update to 2.2.1

PR:		250447
Submitted by:	Daniel Tihanyi <daniel.tihanyi@tetragir.com> (maintainer)
10 Aug 2020 16:36:26
Original commit files touched by this commit Revision:544626  2.1.1_1
fernape search for other commits by this committer
www/caddy: fix build when archivers/zstd is installed

www/caddy ships with an obsoleted go wrapper for zstd. We need a newer one or
the build will fail if archivers/zstd is installed.

PR:	248547
Submitted by:	riedre@ya.ru
Reviewed by:	daniel.tihanyi@tetragir.com (maintainer)
06 Aug 2020 17:35:42
Original commit files touched by this commit Revision:544283  2.1.1
pi search for other commits by this committer
www/caddy: upgrade 1.0.4 -> 2.1.1

- previous version was deprecated by upstream
- submitter becomes maintainer

PR:		246623
Submitted by:	daniel.tihanyi@tetragir.com
Reviewed by:	basil.hendroff@gmail.com, dan@familybrown.org
Approved by:	fabian.freyer@physik.tu-berlin.de (maintainer timeout)
Relnotes:	https://caddyserver.com/v2
06 Jan 2020 12:05:57
Original commit files touched by this commit Revision:522216  1.0.4
dmgk search for other commits by this committer
www/caddy: Update to 1.0.4

- While here, unbreak on aarch64
(https://github.com/caddyserver/caddy/pull/2956)

PR:		242441
Submitted by:	Shawn Wilsher <me@shawnwilsher.com>
Reviewed by:	GremL1N <viktor.dvz@gmail.com>, dmgk
Approved by:	maintainer timeout (fabian.freyer@physik.tu-berlin.de, 1 month)
16 Nov 2019 12:52:40
Original commit files touched by this commit Revision:517745  0.11.5_2
dmgk search for other commits by this committer
Bump PORTREVISION after r517743 to force relinking.

Approved by:	araujo (mentor)
Differential Revision:	https://reviews.freebsd.org/D21854
29 Sep 2019 22:34:31
Original commit files touched by this commit Revision:513276  0.11.5_1
dmgk search for other commits by this committer
Go ports: cleanup, finish transition to USES=go started with r505321 (cat.
sysutils-x11)

- Remove custom build/install targets left in place after r505321
- Switch to the new GO_TARGET tuple syntax introduced in r512001

Reviewed by:	tobik
Approved by:	araujo (mentor), portmgr (adamw)
Differential Revision:	https://reviews.freebsd.org/D21744
14 Aug 2019 12:25:09
Original commit files touched by this commit Revision:508913  0.11.5_1
mat search for other commits by this committer
Convert to UCL & cleanup pkg-message (categories w)
15 Apr 2019 12:55:22
Original commit files touched by this commit Revision:499020  0.11.5_1
rodrigo search for other commits by this committer
Add missing run dependency to security/ca_root_nss

Caddy has a feature for automatic Certification installation
from let's encrypt for HTTPS.
Without security/ca_root_nss certificates are impossible to
install, because root certificate is missing.

Bump PORTREVISION.

PR:		237293
Submitted by:	Pwny Tail <pwnytail@bsd.services>
Approved by:	 Fabian Freyer <fabian.freyer@physik.tu-berlin.de> (maintainer)
MFH:		2019Q2
05 Apr 2019 17:50:31
Original commit files touched by this commit Revision:497975  0.11.5
rodrigo search for other commits by this committer
Upgrade www/caddy from v0.11.1 to vO.11.5

Changelogs:
  * https://github.com/mholt/caddy/releases/tag/v0.11.5
  * https://github.com/mholt/caddy/releases/tag/v0.11.4
  * https://github.com/mholt/caddy/releases/tag/v0.11.3
  * https://github.com/mholt/caddy/releases/tag/v0.11.2

PR:		236834
Submitted by:	Mohamed Akram <mohd.akram@outlook.com>
Approved by:	Fabian Freyer <fabian.freyer@physik.tu-berlin.de> (maintainer)
05 Jan 2019 12:05:12
Original commit files touched by this commit Revision:489328  0.11.1
swills search for other commits by this committer
www/caddy: Update to 0.11.1

PR:		234629
Submitted by:	Fabian Freyer <fabian.freyer@physik.tu-berlin.de> (maintainer)
11 May 2018 14:45:35
Original commit files touched by this commit Revision:469642  0.11.0
swills search for other commits by this committer
www/caddy: Update to 0.11.0

PR:		228158
Submitted by:	Fabian Freyer <fabian.freyer@physik.tu-berlin.de> (maintainer)
25 Apr 2018 13:18:17
Original commit files touched by this commit Revision:468278  0.10.14
joneum search for other commits by this committer
www/caddy: update to 0.10.14

PR:		227764
Submitted by:	maintainer
30 Mar 2018 18:18:55
Original commit files touched by this commit Revision:465989  0.10.12
fernape search for other commits by this committer
Update www/caddy to 0.10.12

PR:	27089
Submitted by:	fabian.freyer@physik.tu-berlin.de
Approved by:	tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D14903
22 Feb 2018 23:50:49
Original commit files touched by this commit Revision:462653  0.10.11
yuri search for other commits by this committer
www/caddy: Update to 0.10.11

Additional port chanegs:
* Added pkg-message
* Removed STRIP= because it is safe to strip go executables
* Improved do-build

PR:		226131
Submitted by:	Fabian Freyer <fabian.freyer@physik.tu-berlin.de> (maintainer)
Approved by:	tcberner (mentor, implicit)
Differential Revision:	https://reviews.freebsd.org/D14475
12 Oct 2017 08:12:13
Original commit files touched by this commit Revision:451831  0.10.10
ehaupt search for other commits by this committer
Add caddy 0.10.10, fast, cross-platform HTTP/2 web server with automatic
HTTPS.

PR:		222938
Submitted by:	fabian.freyer@physik.tu-berlin.de

Number of commits found: 41