]> Sergey Matveev's repositories - public-inbox.git/blob - examples/public-inbox-nntpd.socket
treewide: replace /^I: / prefix with /^# /
[public-inbox.git] / examples / public-inbox-nntpd.socket
1 # ==> /etc/systemd/system/public-inbox-nntpd.socket <==
2 # Consider looking at public-inbox-netd.socket instead of this file
3 # to simplify management when serving multiple protocols.
4 #
5 # This contains 5 sockets for an public-inbox-nntpd instance.
6 # The TCP ports are well-known ports registered in /etc/services.
7 # The /run/nntpd.onion.sock entry is meant for the Tor hidden service
8 # enabled by the following line in the torrc(5) file:
9 #   HiddenServicePort 119 unix:/run/nntpd.onion.sock
10 [Unit]
11 Description = public-inbox-nntpd sockets
12
13 [Socket]
14 ListenStream = 0.0.0.0:119
15 ListenStream = 0.0.0.0:563
16 ListenStream = /run/nntpd.onion.sock
17
18 # Separating IPv4 from IPv6 listeners makes for nicer output
19 # of IPv4 addresses in various reporting/monitoring tools
20 BindIPv6Only = ipv6-only
21 ListenStream = [::]:119
22 ListenStream = [::]:563
23
24 Service = public-inbox-nntpd@1.service
25
26 [Install]
27 WantedBy = sockets.target