Installing and configuring go-ntfy works great, with the exception of the value assigned to listen-http in server.yml as this value is never honored. This is due to the service definition file (ntfy.in) statically overriding the value on the command line args. https://github.com/freebsd/freebsd-ports/blob/4efcf88f67eaacfa4cfa78aa9b1be910b38b9406/sysutils/go-ntfy/files/ntfy.in#L25 The current package already reads /usr/local/etc/ntfy/server.yml as default config file, so there's no need to override this. If, for some reason, the default value must be set to 8080 instead of the upstream default of 80, consider patching the default config file and the sample variant. This is also presenting users of the service that enable the web interface with a security issue, by forcefully exposing the login endpoints to the internet over unencrypted connections.
(In reply to Riven Skaye from comment #0) You can set 'ntfy_args' to an empty value, and the 'listen-http' parameter will be honored. ``` # sysrc ntfy_enable ntfy_enable: YES # sysrc ntfy_args ntfy_args: # grep -Ee '^listen-http: ' /usr/local/etc/ntfy/server.yml listen-http: ":8080" # sockstat -4l | grep ntfy www ntfy 68545 3 tcp46 *:8080 *:* ```
(In reply to Jesús Daniel Colmenares Oviedo from comment #1) Perhaps it'd be useful to warn users upon install, similar to how other ports warn about relevant and possibly breaking changes in defaults. For example the caddy package warns users about package and configuration changes that might be very unexpected; it warns to use portacl-rc to enable privileged port binding and update ownership and the sysrc caddy_user and caddy_group vars. The implications of http-by-default for a service sending (possibly private) message contents over the public web are one thing, I suppose those are an upstream problem more than something the port should fix. The issue here, to me, is that it's an undocumented override that makes the port ignore the configuration set by the user. Especially when they've explicitly configured the service to not be directly exposed to the web at all, or when they choose to configure it to run TLS-only. Principle of /most/ surprise, if you will
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=b9b3f2d1a60ac1a456883576de39a63c0569dd39 commit b9b3f2d1a60ac1a456883576de39a63c0569dd39 Author: Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org> AuthorDate: 2026-03-10 05:00:51 +0000 Commit: Jesús Daniel Colmenares Oviedo <dtxdf@FreeBSD.org> CommitDate: 2026-03-10 05:00:51 +0000 sysutils/go-ntfy: Update to 2.18.0 * Bump golang version. * Set listen-http in server.yml instead of in the rc(8) script. ChangeLog: https://github.com/binwiederhier/ntfy/releases/tag/v2.18.0 PR: 293557 sysutils/go-ntfy/Makefile | 7 +++---- sysutils/go-ntfy/distinfo | 14 +++++++------- sysutils/go-ntfy/files/ntfy.in | 2 +- sysutils/go-ntfy/files/patch-server_server.yml (new) | 11 +++++++++++ 4 files changed, 22 insertions(+), 12 deletions(-)
Committed, thanks!