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