aboutsummaryrefslogtreecommitdiff
path: root/src/datastore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-03 13:19:52 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-03 13:19:52 +0000
commit29c724d2a7764f83fe846b418d09540348b86983 (patch)
treedafaff8e37ba51355b22b6f38d856ae49e145006 /src/datastore
parentb303961f38c9b578f30248ee364ed4e5ffdcd06c (diff)
downloadgnunet-29c724d2a7764f83fe846b418d09540348b86983.tar.gz
gnunet-29c724d2a7764f83fe846b418d09540348b86983.zip
implementing #1747
Diffstat (limited to 'src/datastore')
-rw-r--r--src/datastore/Makefile.am5
-rw-r--r--src/datastore/datastore.conf33
-rw-r--r--src/datastore/test_defaults.conf3
3 files changed, 41 insertions, 0 deletions
diff --git a/src/datastore/Makefile.am b/src/datastore/Makefile.am
index cecda89b4..cab08bc0f 100644
--- a/src/datastore/Makefile.am
+++ b/src/datastore/Makefile.am
@@ -2,6 +2,11 @@ INCLUDES = -I$(top_srcdir)/src/include
2 2
3plugindir = $(libdir)/gnunet 3plugindir = $(libdir)/gnunet
4 4
5pkgcfgdir= $(pkgdatadir)/config.d/
6
7dist_pkgcfg_DATA = \
8 datastore.conf
9
5if MINGW 10if MINGW
6 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 11 WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols
7endif 12endif
diff --git a/src/datastore/datastore.conf b/src/datastore/datastore.conf
new file mode 100644
index 000000000..ed44036c7
--- /dev/null
+++ b/src/datastore/datastore.conf
@@ -0,0 +1,33 @@
1[datastore]
2AUTOSTART = YES
3UNIXPATH = /tmp/gnunet-service-datastore.sock
4UNIX_MATCH_UID = YES
5UNIX_MATCH_GID = YES
6PORT = 2093
7HOSTNAME = localhost
8HOME = $SERVICEHOME
9CONFIG = $DEFAULTCONFIG
10BINARY = gnunet-service-datastore
11ACCEPT_FROM = 127.0.0.1;
12ACCEPT_FROM6 = ::1;
13QUOTA = 100000000
14BLOOMFILTER = $SERVICEHOME/fs/bloomfilter
15DATABASE = sqlite
16# DISABLE_SOCKET_FORWARDING = NO
17
18[datastore-sqlite]
19FILENAME = $SERVICEHOME/datastore/sqlite.db
20
21[datastore-postgres]
22CONFIG = connect_timeout=10; dbname=gnunet
23
24[datastore-mysql]
25DATABASE = gnunet
26CONFIG = ~/.my.cnf
27# USER = gnunet
28# PASSWORD =
29# HOST = localhost
30# PORT = 3306
31
32
33
diff --git a/src/datastore/test_defaults.conf b/src/datastore/test_defaults.conf
index 2af5c5315..e2911fc2d 100644
--- a/src/datastore/test_defaults.conf
+++ b/src/datastore/test_defaults.conf
@@ -13,3 +13,6 @@ AUTOSTART = NO
13 13
14[nse] 14[nse]
15AUTOSTART = NO 15AUTOSTART = NO
16
17[dv]
18AUTOSTART = NO \ No newline at end of file