# ownCloud News app [![irc](https://img.shields.io/badge/irc%20channel-%23owncloud--news%20on%20freenode-blue.svg)](https://webchat.freenode.net/?channels=owncloud-news) [![Join the chat at https://gitter.im/owncloud/news](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/owncloud/news?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Build Status](https://travis-ci.org/owncloud/news.svg?branch=master)](https://travis-ci.org/owncloud/news) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/owncloud/news/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/owncloud/news/?branch=master) The News app is an RSS/Atom feed aggregator. It offers a [RESTful API](https://github.com/owncloud/news/wiki/API-1.2) for app developers. The source code is [available on GitHub](https://github.com/owncloud/news) ![](https://apps.owncloud.com/CONTENT/content-pre1/168040-1.png) For further developer and user documentation please visit [the wiki](https://github.com/owncloud/news/wiki) ## Maintainers * [Bernhard Posselt](https://github.com/BernhardPosselt) * [Alessandro Cosentino](https://github.com/cosenal) * [Jan-Christoph Borchardt](https://github.com/jancborchardt) (Design) ## Sync Clients are listed on the [ownCloud apps overview](https://github.com/owncloud/core/wiki/Apps) ## Dependencies * ownCloud >= 9.0 * libxml >= 2.7.8 (2.9 recommended) * php-curl * iconv * SimpleXML * PHP >= 5.6 ## Build Dependencies These Dependencies are only relevant if you want to build the source code: * make * which * Node.js >= 5.6 * npm * composer ## Supported Browsers * Newest Firefox (Desktop, Android, Firefox OS) * Newest Chrome/Chromium (Desktop, Android) ## Supported Databases * PostgreSQL >= 9.4 (recommended) * MariaDb >= 5.5 * SQLite (discouraged) ## Bugs Please read the [appropriate section in the contributing notices](https://github.com/owncloud/news/blob/master/CONTRIBUTING.md#issues) ## Installation/Update ### Before you install/update the News app Before you install the app do the following: * Check that your **owncloud/data/** directory is owned by your webserver user and that it is write/readable * Check that your installation fullfills the [requirements listed in the README section](https://github.com/owncloud/news#dependencies) * [Set up ownCloud Background Jobs](https://doc.owncloud.org/server/8.0/admin_manual/configuration_server/background_jobs_configuration.html) to enable feed updates. A recommended timespan for feed updates is 15-30 Minutes. Then proceed to install the app either from an archive (zip/tar.gz) or clone it from the repository using git ### Installing from the app store This is the easiest solution: Simply go the the apps page and enable the News app ### Installing from archive * Go to the [ownCloud News GitHub releases page](https://github.com/owncloud/news/releases) and download the latest release/archive to your server * Starting with 8.0.0, there are two different releases: **news.tar.gz** and **Source code**. The first one requires no additional steps, the second one requires you to install the dependencies and compile the JavaScript. Choose the first one if you don't want to work on the code. If you want to install a version prior to 8.0.0, choose the **Source code** download. * On your server, check if there is a folder called **owncloud/apps/news**. If there is one, delete it. * Extract the downloaded archive to the **owncloud/apps/** folder. * Remove the version from the extracted folder (e.g. rename **owncloud/apps/news-4.0.3/** to **owncloud/apps/news/** * If you are a version greater than or equal to 8.0.0 and downloaded the **Source code** zip or tar.gz, you need to install the JavaScript and PHP dependencies and compile the JavaScript first. On your terminal, change into the **owncloud/apps/news/** directory and run the following command (requires node >5.6, npm, curl, make and which): sudo -u www-data make # www-data might vary depending on your distribution * Finally make sure that the **owncloud/apps/news** directory is owned by the web server user sudo chown -R www-data:www-data owncloud/apps/news # www-data:www-data might vary depending on your distribution * Activate the **News** app in the apps menu ### Installing from Git (development version) * The master branch will always be stable in conjunction with the latest master branch from ownCloud * JavaScript and PHP libraries are not included anymore since 8.0.0 and will require you to run **make** after updating/installing the app * In your terminal go into the **owncloud/apps/** directory and then run the following command: git clone https://github.com/owncloud/news.git cd news make * If you are using a stable ownCloud release, stay with the [latest git tag release which is running on your version](https://github.com/owncloud/news/releases). To get an overview over all existing tags run: git tag You can switch to a release which will be supported on your installation by running: git checkout tags/TAG make # if News version >= 8.0.0 For instance to use the 5.2.8 release, run: git checkout tags/5.2.8 * Activate the **News** app in the apps menu To update the News app use change into the **owncloud/apps/news/** directory using your terminal and then run: git pull --rebase origin master make ## Performance Notices * Use MySQL or PostgreSQL for better database performance * Use the [updater script to thread and speed up the update](https://github.com/owncloud/news-updater) ## Updating Notices To receive notifications when a new News app version was released, simply add the following Atom feed in your currently installed News app: https://github.com/owncloud/news/releases.atom ## FAQ ### My browser shows a mixed content warning (Connection is Not Secure) If you are serving your ownCloud over HTTPS your browser will very likely warn you with a yellow warnings sign about your connection not being secure. Chrome will show no green HTTPS lock sign, Firefox will show you the following image ![Mixed Passive Content](https://ffp4g1ylyit3jdyti1hqcvtb-wpengine.netdna-ssl.com/security/files/2015/10/mixed-passive-click1-600x221.png) Note that this warning **is not red and won't block the page like the following images** which signal **a serious issue**: ![Untrusted Cert](http://www.inmotionhosting.com/support/images/stories/website/errors/ssl/chrome-self-signed-ssl-warning.png) ![Mixed Active Content](http://www.howtogeek.com/wp-content/uploads/2014/02/650x367xchrome-mixed-content-https-problem.png.pagespeed.gp+jp+jw+pj+js+rj+rp+rw+ri+cp+md.ic.r_lQiZiq38.png) #### What is the cause of the (yellow) error message This warning is caused by [mixed passive content](https://developer.mozilla.org/en/docs/Security/MixedContent) and means that your page loads passive resources from non HTTPS resources, such as: * Images * Video/Audio This allows a possible attacker to perform a MITM (man-in-the-middle) attack by serving you different images or audio/video. #### Why doesn't the News app fix it The News app fully prevents mixed **active** content by only allowing HTTPS iframes from known locations; other possible mixed active content elements such as \