Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/news-updater.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Posselt <BernhardPosselt@users.noreply.github.com>2021-12-11 17:06:15 +0300
committerGitHub <noreply@github.com>2021-12-11 17:06:15 +0300
commit4603ee1cdd044b8719d3c91f3d4ddad1b3b240cd (patch)
tree287d9ebaf26fb164dd6f8e5d0c8a20fd002a2adb
parent08ce014a9753c7174ffac81994d818081f67560e (diff)
parent6340a66ca40e9a1d9df75f964f16322aa78d26cb (diff)
Merge pull request #41 from wonderfulShrineMaidenOfParadise/patch-1HEADmaster
README.rst: Notes about config file
-rw-r--r--README.rst16
1 files changed, 11 insertions, 5 deletions
diff --git a/README.rst b/README.rst
index 746161a..59789b7 100644
--- a/README.rst
+++ b/README.rst
@@ -177,21 +177,27 @@ You can also put your settings in a config file, looking like this:
.. code:: ini
[updater]
- # only needed when using the REST API
- user = admin
- # only needed when using the REST API
- password = admin
threads = 10
interval = 900
loglevel = error
# or https://domain.com/nextcloud when using the REST API
url = /path/to/nextcloud
- phpini = /path/to/custom/php.ini
# or v2 which is currently a draft
apilevel = v15
mode = endless
+
+ # The following lines are only needed when using the REST API
+ user = admin
+ password = admin
+
+ # The following lines are only needed when using the console API
# path to php binary
php = /usr/bin/php7.0
+ phpini = /path/to/custom/php.ini
+
+**Warning**: If you use REST API with user and password assigned in the config file, you probably don't want anyone else but the file owner to see your user/password in the file. Secure it with::
+
+ chmod 600 /path/to/config
**Note**: You can omit options in the config file if you want to use the defaults, but you can not have more than the allowed parameters present, otherwise an exception will abort the updater.