From 5af62e1a08cb1382db5c912ec849bab6141e8c90 Mon Sep 17 00:00:00 2001 From: Joseph Nuthalpati Date: Mon, 9 Oct 2017 19:19:06 +0530 Subject: [PATCH] ttrss: Make tt-rss api accessible using Apache basic auth Partially fixes #958 The user still has to enable API access from Preferences in the tt-rss app. Ideally, this should be automated, but this setting wasn't trivial to find. Will try to automate this in a future pull request. Signed-off-by: Joseph Nuthalpati Reviewed-by: Sunil Mohan Adapa --- data/etc/apache2/conf-available/tt-rss-plinth.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/data/etc/apache2/conf-available/tt-rss-plinth.conf b/data/etc/apache2/conf-available/tt-rss-plinth.conf index 0ec14d986..2923b374b 100644 --- a/data/etc/apache2/conf-available/tt-rss-plinth.conf +++ b/data/etc/apache2/conf-available/tt-rss-plinth.conf @@ -3,7 +3,14 @@ ## Allow all valid LDAP users. ## Alias /tt-rss /usr/share/tt-rss/www +Alias /tt-rss-api /usr/share/tt-rss/www Include includes/freedombox-single-sign-on.conf + + + Include includes/freedombox-auth-ldap.conf + Require valid-user + # TODO Restrict access to `news` group +