diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-12-03 23:47:37 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-12-03 23:47:37 +0100 |
commit | 2300a850fe3bcf0176ff77f51cf0cb699bc9a79e (patch) | |
tree | 453f16107b871e80f2cd1dc2ce88259319a496cc /src/sync/sync.conf | |
parent | 440135668be79231ebab8afc1f34350bbfe07ad4 (diff) | |
download | sync-2300a850fe3bcf0176ff77f51cf0cb699bc9a79e.tar.gz sync-2300a850fe3bcf0176ff77f51cf0cb699bc9a79e.tar.bz2 sync-2300a850fe3bcf0176ff77f51cf0cb699bc9a79e.zip |
provide paths
Diffstat (limited to 'src/sync/sync.conf')
-rw-r--r-- | src/sync/sync.conf | 38 |
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... |