diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-11-03 13:19:52 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-11-03 13:19:52 +0000 |
commit | 29c724d2a7764f83fe846b418d09540348b86983 (patch) | |
tree | dafaff8e37ba51355b22b6f38d856ae49e145006 /src/datastore | |
parent | b303961f38c9b578f30248ee364ed4e5ffdcd06c (diff) | |
download | gnunet-29c724d2a7764f83fe846b418d09540348b86983.tar.gz gnunet-29c724d2a7764f83fe846b418d09540348b86983.zip |
implementing #1747
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/Makefile.am | 5 | ||||
-rw-r--r-- | src/datastore/datastore.conf | 33 | ||||
-rw-r--r-- | src/datastore/test_defaults.conf | 3 |
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 | ||
3 | plugindir = $(libdir)/gnunet | 3 | plugindir = $(libdir)/gnunet |
4 | 4 | ||
5 | pkgcfgdir= $(pkgdatadir)/config.d/ | ||
6 | |||
7 | dist_pkgcfg_DATA = \ | ||
8 | datastore.conf | ||
9 | |||
5 | if MINGW | 10 | if MINGW |
6 | WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols | 11 | WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols |
7 | endif | 12 | endif |
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] | ||
2 | AUTOSTART = YES | ||
3 | UNIXPATH = /tmp/gnunet-service-datastore.sock | ||
4 | UNIX_MATCH_UID = YES | ||
5 | UNIX_MATCH_GID = YES | ||
6 | PORT = 2093 | ||
7 | HOSTNAME = localhost | ||
8 | HOME = $SERVICEHOME | ||
9 | CONFIG = $DEFAULTCONFIG | ||
10 | BINARY = gnunet-service-datastore | ||
11 | ACCEPT_FROM = 127.0.0.1; | ||
12 | ACCEPT_FROM6 = ::1; | ||
13 | QUOTA = 100000000 | ||
14 | BLOOMFILTER = $SERVICEHOME/fs/bloomfilter | ||
15 | DATABASE = sqlite | ||
16 | # DISABLE_SOCKET_FORWARDING = NO | ||
17 | |||
18 | [datastore-sqlite] | ||
19 | FILENAME = $SERVICEHOME/datastore/sqlite.db | ||
20 | |||
21 | [datastore-postgres] | ||
22 | CONFIG = connect_timeout=10; dbname=gnunet | ||
23 | |||
24 | [datastore-mysql] | ||
25 | DATABASE = gnunet | ||
26 | CONFIG = ~/.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] |
15 | AUTOSTART = NO | 15 | AUTOSTART = NO |
16 | |||
17 | [dv] | ||
18 | AUTOSTART = NO \ No newline at end of file | ||