1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2024-12-22 13:12:41 +00:00
The clean & modern RSS server that doesn't give you any crap.
Find a file
2017-08-18 16:19:09 -04:00
dist Add systemd unit file; fill out readme some more 2017-08-18 16:19:09 -04:00
lib Update readme; remove username composition; default pre-auth to false 2017-08-18 10:20:43 -04:00
locale Improve REST test coverage 2017-07-24 08:15:37 -04:00
sql/SQLite3 Changed foreign key on marks table 2017-08-14 17:18:18 -04:00
tests Update readme; remove username composition; default pre-auth to false 2017-08-18 10:20:43 -04:00
www Add systemd unit file; fill out readme some more 2017-08-18 16:19:09 -04:00
.gitattributes Converted all hard tabs to soft tabs 2017-02-16 14:29:42 -06:00
.gitignore More code coverage accommodation 2017-07-20 22:40:09 -04:00
arsse.php Add SQLite timeout (fixes #67) and implement configuration reading 2017-08-17 23:05:08 -04:00
bootstrap.php Complete tests for database driver 2017-07-22 15:29:12 -04:00
composer.json Remove dependency on DrUUID until it's actually used 2017-07-22 23:18:42 -04:00
composer.lock Remove dependency on DrUUID until it's actually used 2017-07-22 23:18:42 -04:00
LICENSE Add license file and skeleton of readme 2017-05-26 10:01:35 -04:00
phpdoc.dist.xml Docblocks for Conf 2017-07-16 22:27:55 -04:00
README.md Add systemd unit file; fill out readme some more 2017-08-18 16:19:09 -04:00

The Advanced RSS Environment

The Arsse is a news aggregator server which implements version 1.2 of NextCloud News' client-server synchronization protocol. Unlike most other aggregator servers, the Arsse does not include a Web front-end (though one is planned as a separate project), and it relies on existing protocols to maximize compatibility with existing clients.

At present the software should be considered in an "alpha" state: though its core subsystems are covered by unit tests and should be free of major bugs, not everything has been rigorously tested. Additionally, though the NextCloud News protocol is fully supported, many features one would expect from other similar software have yet to be implemented. Areas of future work include:

  • Support for more database engines (PostgreSQL, MySQL, MariaDB)
  • Providing more sync protocols (Tiny Tiny RSS, Fever, others)
  • Tools for managing users (manual insertion into the database is currently required)
  • Better packaging and configuration samples

Requirements

Arsse has the following requirements:

  • A Web server
  • PHP 7.0.7 or newer with the following extensions:
  • The ability to run daemon processes on the server

Installation

At present, installation of The Arsse is rather manual. We hope to improve this in the future, but for now the steps below should help get you started. The instructions and configuration samples assume you will be using Ubuntu 16.04 (or equivalent Debian) and Nginx; we hope to expand official support for different configurations in the future as well.

Initial setup

  1. Extract the tar archive to /usr/share
  2. If desired, create /usr/share/arsse/config.php using config.defaults.php as a guide. The file you create only needs to contain non-default settings. The userPreAuth setting may be of particular interest
  3. Copy /usr/share/arsse/dist/arsse.service to /lib/systemd/system
  4. In a terminal, execute the following to start the feed fetching service:
sudo systemctl enable arsse
sudo systemctl start arsse

Configuring the Web server

A sample configuration file for Nginx can be found in arsse/dist/nginx.conf

FIXME: stub

Installation from source

If installing from the Git repository rather than a download package, you will need to follow extra steps before the instructions in the section above.

First, you must install Composer to fetch required PHP libraries. Once Composer is installed, dependencies may be downloaded with the following command:

php composer.phar install -o --no-dev

Second, you may wish to create an example configuration file using the following command:

php ./arsse.php conf save-defaults "./config.defaults.php"

License

Arsse is made available under the permissive MIT license. See the LICENSE file included with the distribution or source code for exact legal text. Dependencies included in the distribution may be governed by other licenses.

Running tests

To run the test suite, you must have Composer installed as well as the command-line PHP interpreter (this is normally required to use Composer). Port 8000 must also be available for use by the built-in PHP Web server.

# first install dependencies
php composer.phar install
# run the tests
./tests/test

The example uses Unix syntax, but the test suite also runs in Windows. By default all tests are run; you can pass the same arguments to the test runner as you would to PHPUnit:

./tests/test --testsuite "Configuration"