mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-11 09:04:54 +00:00
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:
parent
d02975f3df
commit
e1ab5b7131
@ -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()
|
||||
|
||||
|
||||
@ -28,7 +28,7 @@ from plinth.utils import format_lazy
|
||||
|
||||
from .manifest import clients
|
||||
|
||||
version = 2
|
||||
version = 3
|
||||
|
||||
managed_services = ['tt-rss']
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user