tt-rss: Skip the check for SELF_URL_PATH

TT-RSS on FreedomBox was working earlier with multiple domain names including
tor onion urls. A recent update added a check to allow TT-RSS only from one
pre-configured domain name. This commit disables this check so that TT-RSS can
work like before.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Joseph Nuthalapati 2018-05-07 20:54:30 +05:30 committed by James Valleroy
parent d02975f3df
commit e1ab5b7131
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808
2 changed files with 11 additions and 1 deletions

View File

@ -58,11 +58,21 @@ def subcommand_setup(_):
aug.set('/files' + DEFAULT_FILE + '/DISABLED', '0')
skip_self_url_path_exists = False
for match in aug.match('/files' + CONFIG_FILE + '/define'):
if aug.get(match) == 'SELF_URL_PATH':
aug.set(match + '/value', "'http://localhost/tt-rss/'")
elif aug.get(match) == 'PLUGINS':
aug.set(match + '/value', "'auth_remote, note'")
elif aug.get(match) == '_SKIP_SELF_URL_PATH_CHECKS':
skip_self_url_path_exists = True
aug.set(match + '/value', 'true')
if not skip_self_url_path_exists:
aug.set('/files' + CONFIG_FILE + '/define[last() + 1]',
'_SKIP_SELF_URL_PATH_CHECKS')
aug.set('/files' + CONFIG_FILE + '/define[last()]/value', 'true')
aug.save()

View File

@ -28,7 +28,7 @@ from plinth.utils import format_lazy
from .manifest import clients
version = 2
version = 3
managed_services = ['tt-rss']