[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-docs] branch master updated: describe env vars, instead of comman
From: |
gnunet |
Subject: |
[taler-docs] branch master updated: describe env vars, instead of command-line option, for db connection string |
Date: |
Fri, 29 Jan 2021 16:06:48 +0100 |
This is an automated email from the git hooks/post-receive script.
ttn pushed a commit to branch master
in repository docs.
The following commit(s) were added to refs/heads/master by this push:
new 1f389a9 describe env vars, instead of command-line option, for db
connection string
1f389a9 is described below
commit 1f389a9158af9a4c0e4ceff5ba581834e78829bc
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
AuthorDate: Fri Jan 29 10:03:51 2021 -0500
describe env vars, instead of command-line option, for db connection string
---
libeufin/nexus-tutorial.rst | 33 +++++++++++++--------------------
1 file changed, 13 insertions(+), 20 deletions(-)
diff --git a/libeufin/nexus-tutorial.rst b/libeufin/nexus-tutorial.rst
index 0ce97c2..01dd8b9 100644
--- a/libeufin/nexus-tutorial.rst
+++ b/libeufin/nexus-tutorial.rst
@@ -110,6 +110,11 @@ The sandbox service is started with the following command:
To reset the state of the sandbox, delete the database. By default,
the database is a SQLite3 file in ``/tmp/libeufin-sandbox.sqlite3``.
+A different database can be specified as a JDBC connection URI
+with the ``LIBEUFIN_SANDBOX_DB_CONNECTION`` environment variable.
+Only *SQLite* (e.g. ``jdbc:sqlite:/tmp/libeufintestdb``) and *PostgreSQL (via
TCP)*
+(e.g.
``jdbc:postgresql://localhost:$port/libeufintestdb?user=$username&password=$password``)
+are supported right now.
For invocations of the LibEuFin command-line interface tool (``libeufin-cli``),
the following environment variable must be set to the URL of the sandbox
@@ -196,36 +201,24 @@ Use the following command to run the nexus service:
$ libeufin-nexus serve --port 5001
By default, the SQLite3 database ``/tmp/libeufin-nexus.sqlite3`` will be used.
-The database can be specified as a JDBC connection URI with the
-``--db-conn-string=$DBCONN`` option. Only *SQLite* and *PostgreSQL (only via
-TCP)* are supported right now.
-
-.. warning::
-
- For production-grade deployments of LibEuFin, we do not recommend
specifying the
- secret database credentials via command line arguments, as can will expose
- those credentials to other users.
-
- Instead, the DB connection string should be specified in an environment
variable
- (which can be set in the systemd unit via an ``EnvironmentFile`` option)
- once LibEuFin supports this (see the corresponding
- `bug tracker entry <https://bugs.gnunet.org/view.php?id=6720>`__).
-
+The database can be specified as a JDBC connection URI
+with the ``LIBEUFIN_NEXUS_DB_CONNECTION`` environment variable.
+Only *SQLite* (e.g. ``jdbc:sqlite:/tmp/libeufintestdb``) and *PostgreSQL (via
TCP)*
+(e.g.
``jdbc:postgresql://localhost:$port/libeufintestdb?user=$username&password=$password``)
+are supported right now.
For example:
.. code-block:: console
- $ libeufin-nexus serve \
-
--db-conn-string=jdbc:postgresql://127.0.0.1:5433/libeufindb?user=foo&password=secret
+ $ export
LIBEUFIN_NEXUS_DB_CONNECTION=jdbc:postgresql://127.0.0.1:5433/libeufindb?user=foo&password=secret
+ $ libeufin-nexus serve
At this point a superuser account needs to be created:
.. code-block:: console
- $ libeufin-nexus superuser \
-
--db-conn-string=jdbc:postgresql://127.0.0.1:5433/libeufindb?user=foo&password=secret
\
- foo # Will interactively ask for password
+ $ libeufin-nexus superuser foo # Will interactively ask for password
For simplicity, a superuser can as well act as a normal user, but an API
to create less privileged users is offered.
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-docs] branch master updated: describe env vars, instead of command-line option, for db connection string,
gnunet <=