From nobody Mon Sep 25 18:08:48 2023 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RvW8f3zY5z4trlr for ; Mon, 25 Sep 2023 18:08:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RvW8d06Rhz3H4b for ; Mon, 25 Sep 2023 18:08:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695665329; a=rsa-sha256; cv=none; b=wAypMMw16uWInwu3oizSo/Gd4LeHtHgnBb21YWw39ni1YEYuES7Fmxv3FhtIGIGcjwMZuQ RvCZSaq8g55DYMsyEXxaVAZkP962BjlLnWcRY3T/TTePPluzOVhXHWAp1XWPfrUyYIJ3yv n4NEhGdBtodLv1mEZc+vo+mz3zRB+6KRxbGTMCJ7bspuKSCFRqUyYHar48FxOEJMNqcQvQ +9mDsYEEBnGiyG3SH8T2mx8YoyB73f4fCBYO59FCRKMzJKlDHhmQmU6IEyi5fqxTKKppMP n2NzN4PzuTzazjotK/0UFEafEI/2FNhaQprNMnvhVc//NkE7YAoSQTARE5PU0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695665329; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=yKf/5CruOk+BZwoPgfHcwn9kDd4fdInkTg/AnUh7BXg=; b=FdrLMfN7XP8zNu5/URsUP4tWz51M3izx3FIQP9J/zl4L3k4wgqIPWGwMMfxdXwKJsu5bnp 16E5gSfUJqS0gD6cxyE5MUMx3aZ6f5omGXAvSIenW0zL8dXKgyihU1V4J56bTqJGTBydGv 7QXp7jlhBAflwWlTnW680zZt1Q58HmTeaW08HxdcufF0b/k0tAQCAPluPbZqNCRlbeo3eb R1QNedlPasdwO7ujTdFOn2GrnBm4T7TNj5EvVNlHb/EpV234gYpjKHV5LwDqBN1VfxzZ8u 2yqpUSgeT6BNzeZsdodliLuvCL3MOX4PQCda8sQswqjT5yHrO4UDA0k1QByh5A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RvW8c6Cf2z8N5 for ; Mon, 25 Sep 2023 18:08:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 38PI8mkw024976 for ; Mon, 25 Sep 2023 18:08:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38PI8mQu024975 for ports-bugs@FreeBSD.org; Mon, 25 Sep 2023 18:08:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 274085] www/caddy: Add forcereload command to rc script Date: Mon, 25 Sep 2023 18:08:48 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: tom@heimdall.pm X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: adamw@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274085 Bug ID: 274085 Summary: www/caddy: Add forcereload command to rc script Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: adamw@FreeBSD.org Reporter: tom@heimdall.pm Flags: maintainer-feedback?(adamw@FreeBSD.org) Assignee: adamw@FreeBSD.org Created attachment 245223 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D245223&action= =3Dedit Proposed patch for www/caddy External TLS certificates (e.g. managed by acme.sh) are not reloaded by `ca= ddy reload` unless Caddy's configuration has changed. Caddy added a `--force` f= lag which makes it reload everything (including TLS certs) no matter what for t= his use case. Currently, the caddy rc script has a `reload` directive which does a regular Caddy reload (which doesn't reload external certificates). This patch adds a `forcereload` command which, as its name implies, makes Caddy reload everyt= hing (using `caddy reload --force`). This way, Caddy can reload external certificates when they change (for instance, using acme.sh's `RenewHook`) without needing a full restart (thus keeping active connections alive) or `curl`-ing Caddy's admin API to do a f= ull reload. Thanks a lot in advance :) --=20 You are receiving this mail because: You are the assignee for the bug.=