$OpenBSD$

Index: nzbget.conf
--- nzbget.conf.orig
+++ nzbget.conf
@@ -8,7 +8,7 @@
 #
 # On POSIX you can use "~" as alias for home directory (e.g. "~/downloads").
 # On Windows use absolute paths (e.g. "C:\Downloads").
-MainDir=~/downloads
+MainDir=${LOCALSTATEDIR}/nzbget
 
 # Destination directory for downloaded files.
 #
@@ -61,7 +61,7 @@ TempDir=${MainDir}/tmp
 # NOTE: To disable web-interface set the option to an empty value.
 # This however doesn't disable the built-in web-server completely because
 # it is also used to serve JSON-/XML-RPC requests.
-WebDir=
+WebDir=${LOCALBASE}/share/nzbget/webui
 
 # Directory with post-processing and other scripts.
 #
@@ -98,7 +98,7 @@ LogFile=${DestDir}/nzbget.log
 # /usr/local/share/nzbget/nzbget.conf).
 #
 # Example: /usr/local/share/nzbget/nzbget.conf.
-ConfigTemplate=
+ConfigTemplate=${LOCALBASE}/share/nzbget/nzbget.conf
 
 # Required directories.
 #
@@ -297,7 +297,7 @@ Server1.Notes=
 #
 # NOTE: If you set the option to "127.0.0.1" you will be able to connect to NZBGet
 # only from the computer running NZBGet. This restriction applies to web-interface too.
-ControlIP=0.0.0.0
+ControlIP=127.0.0.1
 
 # Port which NZBGet server and remote client use (1-65535).
 #
@@ -437,7 +437,7 @@ CertCheck=no
 # NOTE: This option has effect only if the program was started from
 # root-account, otherwise it is ignored and the daemon runs under
 # current user id.
-DaemonUsername=root
+DaemonUsername=_nzbget
 
 # Specify default umask (affects file permissions) for newly created
 # files, POSIX only (000-1000).
