donau

Donation authority for GNU Taler (experimental)
Log | Files | Refs | Submodules | README | LICENSE

commit 3d789ac21aa08dd5bc09617c5f5e0ac114d16f4e
parent c14cb0cdcfa34be71f60a9cea4f9c2c1d8b2f02f
Author: Casaburi Johannes <johannes.casaburi@students.bfh.ch>
Date:   Tue,  9 Jan 2024 11:58:03 +0100

httpd config change

Diffstat:
Msrc/donau/donau-httpd.c | 26+++++++++++++-------------
Msrc/donau/donau-httpd.h | 2+-
Msrc/donau/donau.conf | 2+-
Msrc/donau/test_donau_httpd.conf | 5+----
Msrc/testing/test_donau_api.conf | 2+-
5 files changed, 17 insertions(+), 20 deletions(-)

diff --git a/src/donau/donau-httpd.c b/src/donau/donau-httpd.c @@ -80,7 +80,7 @@ static struct MHD_Daemon *mhd; /** * How long is caching /keys allowed at most? (global) */ -struct GNUNET_TIME_Relative DH_max_keys_caching; +// struct GNUNET_TIME_Relative DH_max_keys_caching; /** * Our DB plugin. (global) @@ -699,18 +699,18 @@ donau_serve_process_config (void) req_max = ULLONG_MAX; } - if (GNUNET_OK != - GNUNET_CONFIGURATION_get_value_time (DH_cfg, - "donau", - "MAX_KEYS_CACHING", - &DH_max_keys_caching)) - { - GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, - "donau", - "MAX_KEYS_CACHING", - "valid relative time expected"); - return GNUNET_SYSERR; - } + // if (GNUNET_OK != + // GNUNET_CONFIGURATION_get_value_time (DH_cfg, + // "donau", + // "MAX_KEYS_CACHING", + // &DH_max_keys_caching)) + // { + // GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_ERROR, + // "donau", + // "MAX_KEYS_CACHING", + // "valid relative time expected"); + // return GNUNET_SYSERR; + // } if (GNUNET_OK != TALER_config_get_currency (DH_cfg, &DH_currency)) diff --git a/src/donau/donau-httpd.h b/src/donau/donau-httpd.h @@ -32,7 +32,7 @@ /** * How long is caching /keys allowed at most? */ -extern struct GNUNET_TIME_Relative DH_max_keys_caching; +// extern struct GNUNET_TIME_Relative DH_max_keys_caching; /** * The donau's configuration. diff --git a/src/donau/donau.conf b/src/donau/donau.conf @@ -20,7 +20,7 @@ ATTRIBUTE_ENCRYPTION_KEY = SET_ME_PLEASE # limit is the minimum of this value and the first expected # significant change in /keys based on the expiration times. # Used to artificially reduce caching (addresses #5747). -MAX_KEYS_CACHING = forever +# MAX_KEYS_CACHING = forever # After how many requests should the donau auto-restart # (to address potential issues with memory fragmentation)? diff --git a/src/donau/test_donau_httpd.conf b/src/donau/test_donau_httpd.conf @@ -4,13 +4,10 @@ TALER_TEST_HOME = test_taler_donau_httpd_home/ TALER_RUNTIME_DIR = ${TMPDIR:-${TMP:-/tmp}}/${USER:-}/taler-system-runtime/ [taler] -# Currency supported by the donau (can only be one) +# Currency supported by the exchange (can only be one) CURRENCY = EUR CURRENCY_ROUND_UNIT = EUR:0.01 -[auditor] -TINY_AMOUNT = EUR:0.01 - [donau] # Directory with our terms of service. diff --git a/src/testing/test_donau_api.conf b/src/testing/test_donau_api.conf @@ -17,7 +17,7 @@ DB = postgres BASE_URL = "http://localhost:8080/" SERVE = tcp EXPIRE_IDLE_SLEEP_INTERVAL ="1 s" -MAX_KEYS_CACHING = forever +#MAX_KEYS_CACHING = forever [donaudb-postgres] CONFIG = "postgres:///talercheck"