libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit d648a98f511ac4ed1a8a83516c09f4fe66f164bf
parent de87f8c9fce0f736b42c706d2a3f451a4d5fbc0e
Author: Antoine A <>
Date:   Mon, 19 Feb 2024 16:09:32 +0100

Rename ADDRESS to BIND_TO and make 0.0.0.0 the default

Diffstat:
Mbank/src/main/kotlin/tech/libeufin/bank/Config.kt | 2+-
Mcontrib/bank.conf | 4++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bank/src/main/kotlin/tech/libeufin/bank/Config.kt b/bank/src/main/kotlin/tech/libeufin/bank/Config.kt @@ -79,7 +79,7 @@ fun TalerConfig.loadDbConfig(): DatabaseConfig { fun TalerConfig.loadServerConfig(): ServerConfig { return when (val method = requireString("libeufin-bank", "serve")) { - "tcp" -> ServerConfig.Tcp(requireString("libeufin-bank", "address"), requireNumber("libeufin-bank", "port")) + "tcp" -> ServerConfig.Tcp(lookupString("libeufin-bank", "address") ?: requireString("libeufin-bank", "bind_to"), requireNumber("libeufin-bank", "port")) "unix" -> ServerConfig.Unix(requireString("libeufin-bank", "unixpath"), requireNumber("libeufin-bank", "unixpath_mode")) else -> throw TalerConfigError.invalid("server method", "libeufin-bank", "serve", "expected 'tcp' or 'unix' got '$method'") } diff --git a/contrib/bank.conf b/contrib/bank.conf @@ -48,8 +48,8 @@ SERVE = tcp # Port on which the HTTP server listens, e.g. 9967. Only used if SERVE is tcp. PORT = 8080 -# Address on which the HTTP server listens, e.g. localhost. Only used if SERVE is tcp. -ADDRESS = localhost +# Which IP address should we bind to? E.g. ``127.0.0.1`` or ``::1``for loopback. Can also be given as a hostname. Only used if SERVE is tcp. +BIND_TO = 0.0.0.0 # Which unix domain path should we bind to? Only used if SERVE is unix. # UNIXPATH = libeufin-bank.sock