summaryrefslogtreecommitdiff
path: root/frags/deploying-tos.rst
blob: 5b389f44e6177e427ad285b91552d9d22ac9cb10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
..
  This file is part of GNU TALER.
  Copyright (C) 2014-2024 Taler Systems SA

  TALER is free software; you can redistribute it and/or modify it under the
  terms of the GNU Affero General Public License as published by the Free Software
  Foundation; either version 2.1, or (at your option) any later version.

  TALER is distributed in the hope that it will be useful, but WITHOUT ANY
  WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more details.

  You should have received a copy of the GNU Affero General Public License along with
  TALER; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>


Configuring exchange terms
==========================

You can use your own terms of service and privacy policy. You can use the default templates in ``/usr/share/taler/terms`` as a guide.
Assuming you have custom terms of service and privacy policy ``rst`` teamplte files at ``TOS_PATH`` and ``PRIVACY_PATH``, the following commands generate the terms files:

.. code-block:: console

  # taler-terms-generator -i "$TOS_PATH"
  # taler-terms-generator -i "$PRIVACY_PATH"

You now have to specify the terms file names in the exchange config:

.. code-block:: console

  # TERMS_ETAG="$(basename "$TOS_PATH" .rst)"
  # PRIVACY_ETAG="$(basename "$PRIVACY_PATH" .rst)"

.. code-block:: ini

  [exchange]
  TERMS_ETAG=${TERMS_ETAG}
  PRIVACY_ETAG=${PRIVACY_ETAG}

Make sure to restart taler-exchange after changing these configuration options:

.. code-block:: console

  # systemctl restart taler-exchange.target