summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-12-03 23:47:37 +0100
committerChristian Grothoff <christian@grothoff.org>2019-12-03 23:47:37 +0100
commit2300a850fe3bcf0176ff77f51cf0cb699bc9a79e (patch)
tree453f16107b871e80f2cd1dc2ce88259319a496cc
parent440135668be79231ebab8afc1f34350bbfe07ad4 (diff)
downloadsync-2300a850fe3bcf0176ff77f51cf0cb699bc9a79e.tar.gz
sync-2300a850fe3bcf0176ff77f51cf0cb699bc9a79e.tar.bz2
sync-2300a850fe3bcf0176ff77f51cf0cb699bc9a79e.zip
provide paths
-rw-r--r--src/sync/sync.conf38
1 files changed, 37 insertions, 1 deletions
diff --git a/src/sync/sync.conf b/src/sync/sync.conf
index 2b1d1d0..0242454 100644
--- a/src/sync/sync.conf
+++ b/src/sync/sync.conf
@@ -18,7 +18,7 @@ PORT = 9967
# BIND_TO =
# Which unix domain path should we bind to? Only used if "SERVE" is 'unix'.
-UNIXPATH = ${sync_RUNTIME_DIR}/backend.http
+UNIXPATH = ${SYNC_RUNTIME_DIR}/backend.http
# What should be the file access permissions (see chmod) for "UNIXPATH"?
UNIXPATH_MODE = 660
@@ -42,3 +42,39 @@ PAYMENT_BACKEND_URL = http://localhost:9966/
# Configuration for postgres database.
[syncdb-postgres]
CONFIG = postgres:///sync
+
+
+[PATHS]
+# The PATHS section is special, as filenames including $-expression are
+# expanded using the values from PATHS or the system environment (PATHS
+# is checked first). libgnunetutil supports expanding $-expressions using
+# defaults with the syntax "${VAR:-default}". Here, "default" can again
+# be a $-expression.
+#
+# We usually want $HOME for $SYNC_HOME
+#
+SYNC_HOME = ${HOME:-${USERPROFILE}}
+
+# see XDG Base Directory Specification at
+# http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
+# for how these should be used.
+
+# Persistant data storage
+SYNC_DATA_HOME = ${XDG_DATA_HOME:-$SYNC_HOME/.local/share}/sync/
+
+# Configuration files
+SYNC_CONFIG_HOME = ${XDG_CONFIG_HOME:-$SYNC_HOME/.config}/sync/
+
+# Cached data, no big deal if lost
+SYNC_CACHE_HOME = ${XDG_CACHE_HOME:-$SYNC_HOME/.cache}/sync/
+
+# Runtime data (i.e UNIX domain sockets, locks, always lost on system boot)
+SYNC_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/sync-runtime/
+
+# Directory to use for temporary files.
+SYNC_TMP = ${TMPDIR:-${TMP:-/tmp}}/sync/
+
+# DEFAULTCONFIG = /etc/sync.conf
+# If 'DEFAULTCONFIG' is not defined, the current
+# configuration file is assumed to be the default,
+# which is what we want by default...