featherwiki: Proxy download through freedombox.org

This serves two purposes:

1. Upstream's website cannot track the IP addresses of FreedomBox users.
2. We can update the versions of the empty quine files without making
   code changes in FreedomBox.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
[sunil: Update description to reflect the change in upstream URL]
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.or>g
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati 2024-08-09 07:33:00 +05:30 committed by Sunil Mohan Adapa
parent 0b758423a4
commit 559a4c30e8
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 5 additions and 4 deletions

View File

@ -29,8 +29,10 @@ _description = [
_('Each wiki is a small file. Create as many wikis as you like, such as '
'one wiki per topic. Customize each wiki to your liking with extensions '
'and other customization options.'),
_('Feather Wiki is downloaded from upstream website and not from Debian. '
'Wikis need to be upgraded to newer version manually.'),
format_lazy(
_('Feather Wiki is downloaded from {box_name} website and not from '
'Debian. Wikis need to be upgraded to newer version manually.'),
box_name=_(cfg.box_name)),
format_lazy(
_('Wikis are not public by default, but they can be downloaded for '
'sharing or publishing. They can be edited by <a href="{users_url}">'

View File

@ -9,8 +9,7 @@ import urllib.request
from plinth.actions import privileged
# Needs to be changed on a new release
EMPTY_WIKI_FILE = 'https://feather.wiki/builds/v1.8.x/FeatherWiki_Skylark.html'
EMPTY_WIKI_FILE = 'https://ftp.freedombox.org/pub/featherwiki/empty.html'
wiki_dir = pathlib.Path('/var/lib/featherwiki')