-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from cclauss/inn2-server
Run inn2-server in Docker
- Loading branch information
Showing
3 changed files
with
243 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# docker build -t inn2-server . && docker run -it inn2-server | ||
# /usr/lib/news/bin/innd -d | ||
|
||
FROM debian:bookworm | ||
|
||
# Required for package installation | ||
COPY inn.conf /etc/news/inn.conf | ||
|
||
RUN mkdir -p /usr/lib/news/db && \ | ||
mkdir -p /usr/lib/news/spool/articles && \ | ||
apt update && \ | ||
apt install -o Dpkg::Options::='--force-confold' -y inn2 msmtp && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# CMD ["/usr/lib/news/bin/innd", "-d"] | ||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# InterNetNews v2.7 (INN2) | ||
* [inn2 documentation](https://www.isc.org/othersoftware/#INN) | ||
* [inn2 repo](https://github.com/InterNetNews/inn) | ||
* https://defuse.ca/inn-private-newsgroup-server-setup.htm | ||
* https://www.eyrie.org/~eagle/software/inn/docs-2.7 | ||
|
||
--- | ||
|
||
In this directory: | ||
```zsh | ||
% docker build -t inn2-server . && docker run -it inn2-server | ||
# /usr/lib/news/bin/innd -d && ps -ef | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
## $Id: inn.conf.in 10301 2018-11-11 14:42:17Z iulius $ | ||
## | ||
## inn.conf -- INN configuration data | ||
## | ||
## Format: | ||
## <parameter>:<whitespace><value> | ||
## | ||
## Blank values are allowed for certain parameters. | ||
## | ||
## See the inn.conf(5) man page for a full description of each of these | ||
## options. This sample file is divided into two sections; first, there | ||
## are the parameters that must be set (or should be set in nearly all | ||
## cases), and then all parameters are given with their defaults for | ||
## reference in the same order and with the same organization as the | ||
## inn.conf(5) documentation. | ||
|
||
# The following parameters are most likely to need setting, although the | ||
# defaults generated by configure may be reasonable. | ||
|
||
mta: "/usr/sbin/sendmail -oi -oem %s" | ||
organization: "A poorly-installed InterNetNews site" | ||
ovmethod: tradindexed | ||
hismethod: hisv6 | ||
pathhost: news-server.localdomain | ||
pathnews: /usr/lib/news | ||
|
||
#runasuser: | ||
#runasgroup: | ||
|
||
# General Settings | ||
|
||
domain: localdomain | ||
#innflags: | ||
mailcmd: /usr/lib/news/bin/innmail | ||
#server: | ||
#syntaxchecks: [ no-laxmid ] | ||
|
||
# Feed Configuration | ||
|
||
artcutoff: 10 | ||
#bindaddress: | ||
#bindaddress6: | ||
dontrejectfiltered: false | ||
hiscachesize: 256 | ||
ignorenewsgroups: false | ||
immediatecancel: false | ||
linecountfuzz: 0 | ||
maxartsize: 1000000 | ||
maxconnections: 50 | ||
#pathalias: | ||
#pathcluster: | ||
pgpverify: true | ||
port: 119 | ||
refusecybercancels: false | ||
remembertrash: true | ||
#sourceaddress: | ||
#sourceaddress6: | ||
verifycancels: false | ||
verifygroups: false | ||
wanttrash: false | ||
wipcheck: 5 | ||
wipexpire: 10 | ||
|
||
# Article Storage | ||
|
||
cnfscheckfudgesize: 0 | ||
enableoverview: true | ||
extraoverviewadvertised: [ ] | ||
extraoverviewhidden: [ ] | ||
groupbaseexpiry: true | ||
mergetogroups: false | ||
nfswriter: false | ||
overcachesize: 128 | ||
#ovgrouppat: | ||
storeonxref: true | ||
useoverchan: false | ||
wireformat: true | ||
xrefslave: false | ||
|
||
# Reading | ||
|
||
allownewnews: true | ||
articlemmap: true | ||
clienttimeout: 1800 | ||
initialtimeout: 10 | ||
msgidcachesize: 64000 | ||
nfsreader: false | ||
nfsreaderdelay: 60 | ||
nnrpdcheckart: true | ||
nnrpdflags: "" | ||
nnrpdloadlimit: 16 | ||
noreader: false | ||
readerswhenstopped: false | ||
readertrack: false | ||
tradindexedmmap: true | ||
|
||
# Reading -- Keyword Support | ||
# | ||
# You should add "keywords" to extraoverviewadvertised or extraoverviewhidden | ||
# if you enable this feature. You must have compiled this support in too | ||
# with --enable-keywords at configure time. | ||
|
||
keywords: false | ||
keyartlimit: 100000 | ||
keylimit: 512 | ||
keymaxwords: 250 | ||
|
||
# Posting | ||
|
||
addinjectiondate: true | ||
addinjectionpostingaccount: false | ||
addinjectionpostinghost: true | ||
checkincludedtext: false | ||
#complaints: | ||
fromhost: news-server.localdomain | ||
localmaxartsize: 1000000 | ||
#moderatormailer: | ||
nnrpdauthsender: false | ||
#nnrpdposthost: | ||
nnrpdpostport: 119 | ||
spoolfirst: false | ||
strippostcc: false | ||
|
||
# Posting -- Exponential Backoff | ||
|
||
backoffauth: false | ||
#backoffdb: | ||
backoffk: 1 | ||
backoffpostfast: 0 | ||
backoffpostslow: 1 | ||
backofftrigger: 10000 | ||
|
||
# Reading and Posting -- TLS/SSL Support | ||
# | ||
# The OpenSSL SSL and crypto libraries must have been found | ||
# at configure time to have this support, or you must have | ||
# compiled this support in with --with-openssl at configure time. | ||
|
||
#tlscafile: | ||
#tlscapath: /etc/news | ||
#tlscertfile: /etc/news/cert.pem | ||
#tlskeyfile: /etc/news/key.pem | ||
#tlsciphers: | ||
#tlsciphers13: | ||
#tlscompression: false | ||
#tlseccurve: | ||
#tlspreferserverciphers: true | ||
#tlsprotocols: [ TLSv1 TLSv1.1 TLSv1.2 TLSv1.3 ] | ||
|
||
# Monitoring | ||
|
||
doinnwatch: true | ||
innwatchbatchspace: 4000 | ||
innwatchlibspace: 25000 | ||
innwatchloload: 1000 | ||
innwatchhiload: 2000 | ||
innwatchpauseload: 1500 | ||
innwatchsleeptime: 600 | ||
innwatchspoolnodes: 200 | ||
innwatchspoolspace: 25000 | ||
|
||
# Logging | ||
|
||
docnfsstat: false | ||
htmlstatus: true | ||
incominglogfrequency: 200 | ||
logartsize: true | ||
logcancelcomm: false | ||
logcycles: 3 | ||
logipaddr: true | ||
logsitename: true | ||
logstatus: true | ||
logtrash: true | ||
nnrpdoverstats: true | ||
nntplinklog: false | ||
#stathist: | ||
status: 600 | ||
timer: 600 | ||
|
||
# System Tuning | ||
|
||
badiocount: 5 | ||
blockbackoff: 120 | ||
chaninacttime: 600 | ||
chanretrytime: 300 | ||
datamovethreshold: 16384 | ||
icdsynccount: 10 | ||
keepmmappedthreshold: 1024 | ||
#maxcmdreadsize: | ||
maxforks: 10 | ||
nicekids: 4 | ||
nicenewnews: 0 | ||
nicennrpd: 0 | ||
pauseretrytime: 300 | ||
peertimeout: 3600 | ||
rlimitnofile: -1 | ||
|
||
# Paths | ||
|
||
patharchive: /var/spool/news/archive | ||
patharticles: /var/spool/news/articles | ||
pathbin: /usr/lib/news/bin | ||
pathcontrol: /usr/lib/news/bin/control | ||
pathdb: /var/lib/news | ||
pathetc: /etc/news | ||
pathfilter: /etc/news/filter | ||
pathhttp: /var/www/inn | ||
pathincoming: /var/spool/news/incoming | ||
pathlog: /var/log/news | ||
pathoutgoing: /var/spool/news/outgoing | ||
pathoverview: /var/spool/news/overview | ||
pathrun: /run/news | ||
pathspool: /var/spool/news | ||
pathtmp: /var/spool/news/incoming/tmp |