aboutsummaryrefslogtreecommitdiff
path: root/docs/installation.rst
diff options
context:
space:
mode:
authorLucas Verney <phyks@phyks.me>2017-11-01 01:56:05 +0100
committerAlexis Metaireau <alexis@notmyidea.org>2017-11-01 01:56:05 +0100
commit04535997528125c294d0698e01eea2ff19f5af12 (patch)
tree0ff3f9ed03b1ea3b7b4ec0e17ddb14fafea22970 /docs/installation.rst
parentb94bad829c1fd4b4325a4af280d33d50f164e05f (diff)
downloadihatemoney-mirror-04535997528125c294d0698e01eea2ff19f5af12.zip
ihatemoney-mirror-04535997528125c294d0698e01eea2ff19f5af12.tar.gz
ihatemoney-mirror-04535997528125c294d0698e01eea2ff19f5af12.tar.bz2
Update installation doc to include doc about production values, fix #266. (#282)
Diffstat (limited to 'docs/installation.rst')
-rw-r--r--docs/installation.rst27
1 files changed, 21 insertions, 6 deletions
diff --git a/docs/installation.rst b/docs/installation.rst
index 4a3aeae..5991f92 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -157,28 +157,43 @@ properly.
Defaults given here, are those for development mode. To know defaults on your
deployed instance, simply look at your *ihatemoney.cfg*.
+Production values are recommended values for use in production.
+
+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------+
| Setting name | Default | What does it do? |
+===============================+=================================+========================================================================================+
| SQLALCHEMY_DATABASE_URI | ``sqlite:///tmp/ihatemoney.db`` | Specifies the type of backend to use and its location. More information on the |
| | | format used can be found on `the SQLAlchemy documentation`_. |
+| | | |
+| | | **Production value:** Set it to some path on your disk. Typically |
+| | | ``sqlite:///home/ihatemoney/ihatemoney.db``. Do *not* store it under ``/tmp`` as this |
+| | | folder is cleared at each boot. |
+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------+
-| SECRET_KEY | ``tralala`` | The secret key used to encrypt the cookies. `ihatemoney conf-example ihatemoney.cfg` |
-| | | sets it to something random, which is good. |
+| SECRET_KEY | ``tralala`` | The secret key used to encrypt the cookies. |
+| | | |
+| | | **Production value:** `ihatemoney conf-example ihatemoney.cfg` sets it to something |
+| | | random, which is good. |
+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------+
| MAIL_DEFAULT_SENDER | ``("Budget manager", | A python tuple describing the name and email adress to use when sending |
| | "budget@notmyidea.org")`` | emails. |
+| | | |
+| | | **Production value:** Any tuple you want. |
+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------+
| ACTIVATE_DEMO_PROJECT | ``True`` | If set to `True`, a demo project will be available on the frontpage. |
+| | | |
+| | | **Production value:** Usually, you will want to set it to ``False`` for a private |
+| | | instance. |
+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------+
| | | Hashed password to access protected endpoints. If left empty, all administrative |
| ADMIN_PASSWORD | ``""`` | tasks are disabled. |
-| | | To generate the proper password HASH, use ``ihatemoney generate_password_hash`` |
-| | | and copy the output into the value of *ADMIN_PASSWORD*. |
+| | | |
+| | | **Production value:** To generate the proper password HASH, use |
+| | | ``ihatemoney generate_password_hash`` and copy the output into the value of |
+| | | *ADMIN_PASSWORD*. |
+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------+
-| ALLOW_PUBLIC_PROJECT_CREATION | ``True`` | If set to `True`, everyone can create a project without entering the admin password |
-| | | If set to `False`, the password needs to be entered (and as such, defined in the |
+| ALLOW_PUBLIC_PROJECT_CREATION | ``True`` | If set to ``True``, everyone can create a project without entering the admin password |
+| | | If set to ``False``, the password needs to be entered (and as such, defined in the |
| | | settings). |
+-------------------------------+---------------------------------+----------------------------------------------------------------------------------------+
| ACTIVATE_ADMIN_DASHBOARD | ``False`` | If set to `True`, the dashboard will become accessible entering the admin password |