NAME

news - a read-only web fron-end to a local news server

SYNOPSIS

news

DESCRIPTION

news connects to the local news server via NNTP on port 119, lists all the groups and allows read-only access.

An optional message-id can be provided on the command line. A link to this article serves as the "start here" link on the front page.

For each group, only posts made in the last seven days are shown. The From field is stripped of anything in angled brackets in an effort to remove email addresses: \s*<.*>

For each article, an attempt is made to scrip email addresses by removing anything in angled brackets: \s*<\S*?@.*?>

Environment variables

The news server is determined by Net::NNTP: If no host is passed then two environment variables are checked NNTPSERVER then NEWSHOST, then Net::Config is checked, and if a host is not found then news is used.

NEWS_INTRO_ID can be set to a message id for a "start here" message.

Systemd

To install as a service, use a news.service file like the following:

[Unit]
Description=News (a web front-end)
After=network-online.target
Wants=network-online.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
DynamicUser=true
Restart=always
MemoryHigh=80M
MemoryMax=100M
Environment="NNTPSERVER=localhost"
Environment="NEWS_INTRO_ID=<u4d0i0$n72d$1@sibirocobombus.campaignwiki>"
ExecStart=/home/alex/perl5/perlbrew/perls/perl-5.32.0/bin/perl /home/alex/perl5/perlbrew/perls/perl-5.32.0/bin/news daemon

SEE ALSO

The Tildeverse also runs news. https://news.tildeverse.org/

LICENSE

GNU Affero General Public License