X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=examples%2Fpublic-inbox-imapd.socket;h=22ce16fbebdca9e90f5e007b4fcb25cbba1771f7;hb=e28f33dc1b6e6a296946c0c58b43900c6cbd07f7;hp=fcd924fd2ad02b2483f82a1065549be15f9d5dc8;hpb=14451d6ce4a27e9fd5f16fa655f6745ca8c87920;p=public-inbox.git diff --git a/examples/public-inbox-imapd.socket b/examples/public-inbox-imapd.socket index fcd924fd..22ce16fb 100644 --- a/examples/public-inbox-imapd.socket +++ b/examples/public-inbox-imapd.socket @@ -1,11 +1,26 @@ # ==> /etc/systemd/system/public-inbox-imapd.socket <== +# Consider looking at public-inbox-netd.socket instead of this file +# to simplify management when serving multiple protocols. +# +# This contains 5 sockets for an public-inbox-imapd instance. +# The TCP ports are well-known ports registered in /etc/services. +# The /run/imapd.onion.sock entry is meant for the Tor hidden service +# enabled by the following line in the torrc(5) file: +# HiddenServicePort 143 unix:/run/imapd.onion.sock [Unit] -Description = public-inbox-imapd socket +Description = public-inbox-imapd sockets [Socket] ListenStream = 0.0.0.0:143 +ListenStream = 0.0.0.0:993 +ListenStream = /run/imapd.onion.sock + +# Separating IPv4 from IPv6 listeners makes for nicer output +# of IPv4 addresses in various reporting/monitoring tools BindIPv6Only = ipv6-only ListenStream = [::]:143 +ListenStream = [::]:993 + Service = public-inbox-imapd@1.service [Install]