Bug 293557 (go-ntfy-unconfigurable-ports) - sysutils/go-ntfy: Configurable listen port is overridden by the service
Summary: sysutils/go-ntfy: Configurable listen port is overridden by the service
Status: Open
Alias: go-ntfy-unconfigurable-ports
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jesús Daniel Colmenares Oviedo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-03-03 13:01 UTC by Riven Skaye
Modified: 2026-03-05 00:38 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (dtxdf)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Riven Skaye 2026-03-03 13:01:36 UTC
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.
Comment 1 Jesús Daniel Colmenares Oviedo freebsd_committer freebsd_triage 2026-03-05 00:37:47 UTC
(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                *:*  
```