From e1426bfa50a46532243942d0e74ce098d0e5b80e Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Thu, 1 Oct 2020 10:45:11 +0200 Subject: Update Documentation on the new config Signed-off-by: Benjamin Brahmer --- docs/configuration.md | 24 ++++++++++++++++++++++++ docs/faq/README.md | 4 ++-- 2 files changed, 26 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/configuration.md b/docs/configuration.md index a2e2ee5fd..8c35ce907 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -1,5 +1,29 @@ # Configuration +The configuration is saved in the database, you can change and view them via the admin interface. + +You can find them in the appconfig table. + +```sql +mysql> select * from oc_appconfig where appid = 'news'; ++-------+--------------------------+-------------+ +| appid | configkey | configvalue | ++-------+--------------------------+-------------+ +| news | autoPurgeCount | 200 | +| news | autoPurgeMinimumInterval | 60 | +| news | enabled | yes | +| news | exploreUrl | | +| news | feedFetcherTimeout | 60 | +| news | installed_version | 15.0.0 | +| news | maxRedirects | 10 | +| news | types | | +| news | updateInterval | 3600 | +| news | useCronUpdates | 1 | ++-------+--------------------------+-------------+ +``` + +# Legacy Configuration before News 15.0.0 + All configuration values are set inside **nextcloud/data/news/config/config.ini** and can be edited in the admin panel. The configuration is in **INI** format and looks like this: diff --git a/docs/faq/README.md b/docs/faq/README.md index abf956b90..b32ec2c2f 100644 --- a/docs/faq/README.md +++ b/docs/faq/README.md @@ -120,7 +120,7 @@ Check the **nextcloud/data/nextcloud.log** for hints why it failed. After the is Feeds can be updated using Nextcloud's system cron or any program that implements the [News app's updater API](https://github.com/nextcloud/news/tree/master/docs/externalapi), most notably [Nextcloud News Updater](https://github.com/nextcloud/news-updater). **The feed update is not run in Webcron and AJAX cron mode!** System Cron: -* Check if the config.ini in **nextcloud/data/news/config/config.ini** contains **useCronUpdates = true** +* Check if your configuration is set to use the system cron, [check here](https://github.com/nextcloud/news/blob/master/docs/configuration.md). * Check if you are using the system cron (Cron) setting on the admin page. AJAX and Web cron will not update feeds * Check if the cronjob exists with **crontab -u www-data -e** (replace www-data with your httpd user) * Check the file permissions of the **cron.php** file and if **www-data** (or whatever your httpd user is called like) can read and execute that script @@ -143,7 +143,7 @@ System Cron: * If your cron works fine but Nextcloud's cronjobs are never executed, file a bug in [server](https://github.com/nextcloud/server/) [Nextcloud News Updater](https://github.com/nextcloud/news-updater): -* Check if the config.ini in **nextcloud/data/news/config/config.ini** contains **useCronUpdates = false** +* Check if your configuration is set to **not** use the system cron, [check here](https://github.com/nextcloud/news/blob/master/docs/configuration.md). * Start the updater in loglevel info mode and check if the feed update urls are polled, e.g.: nextcloud_news_updater --loglevel info -c /path/to/config.ini -- cgit v1.2.3