Publish SABnzbd via Bonjour

If you have AVAHI installed on your FreeBSD box, then create a file called sabnzbd.service in the /usr/local/etc/avahi/services directory. This will publish the server via Bonjour, so you can access it easily using a Bonjour enabled browser, such as Safari.

The sabnzbd.service file should have the following content:

<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">

<!-- See avahi.service(5) for more information about this configuration file -->

<service-group>

  <name replace-wildcards="yes">SABnzbd [%h]</name>

  <service>
    <type>_http._tcp</type>
    <port>8080</port>
    <txt-record>path=/queue</txt-record>
  </service>

</service-group>

Make sure you change the port number if you don’t use the standard SABnzbd port.