4095 Commits

Author SHA1 Message Date
Joseph Nuthalapati
bd43ed515e
config: Remove Apache home page configuration from freedombox.conf
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-23 10:31:05 -05:00
Joseph Nuthalapati
bedc5ff96d
config: Add option to use Apache's default home page as home page
This supports the use case of hosting a website on FreedomBox at Apache's web
root. This makes the assumption that index.html is a file in the website.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-23 10:31:02 -05:00
Joseph Nuthalapati
8bc34f84c3
config: Rename Default App to Webserver Home Page
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-23 10:30:59 -05:00
Joseph Nuthalapati
a87b0ff596
config: Migrate default app configuration to new conf file
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-23 10:30:55 -05:00
Joseph Nuthalapati
209d8e7b3a
config: Fix Ikiwiki entries not showing up as default apps
- When a user selects their Ikiwiki wiki or blog as the default app, the UI
  doesn't reflect that. It still shows Plinth as the default app. This commit
  fixes the bug.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-23 10:30:51 -05:00
Joseph Nuthalapati
5ad22114ed
config: Move default-app configuration to a dedicated file
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-23 10:30:45 -05:00
Doma Gergő
70cb3d46b4
Translated using Weblate (Hungarian)
Currently translated at 100.0% (1024 of 1024 strings)
2019-02-23 10:05:21 +01:00
Darkblaze
8fe733369f
Translated using Weblate (Telugu)
Currently translated at 69.1% (708 of 1024 strings)
2019-02-22 13:17:46 +01:00
Anjali Datla
4350133512
Translated using Weblate (Telugu)
Currently translated at 69.1% (708 of 1024 strings)
2019-02-22 13:17:45 +01:00
Johannes Keyser
fb685ae187
Translated using Weblate (German)
Currently translated at 100.0% (1024 of 1024 strings)
2019-02-20 19:17:42 +01:00
Sunil Mohan Adapa
c2f7bd6354
backups: Fix failing test case
When run on empty directory FileNotFoundError is raised. Include it in the list
of expected errors.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-18 21:51:29 -05:00
Sunil Mohan Adapa
c7f46c358d
tahoe: Styling changes
- Run yapf and isort

- Minor styling changes

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-18 21:51:26 -05:00
Sunil Mohan Adapa
96e7fd3e40
utils: Fix some flake8 warnings
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-18 21:51:24 -05:00
Sunil Mohan Adapa
d3bdaf0729
utils: Handle exceptions in context management for YAMLFile
When an exception is raised within the context, the YAML file should not
written.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-18 21:51:20 -05:00
Sunil Mohan Adapa
df76e6afa4
tor: Use fixed 9001 port for relaying
When ORPort is set to 'auto', Tor automatically allocates a port for it. During
it's first run, we able to extract the port number and open the firewall port.
However, unlike for pluggable transports, Tor does not seem to store this port
for future reuse in the state file. It hence opens a new port every time it is
started. This leads to a new port being assigned on next Tor startup and leads
to relay functionality not being reachable from outside.

According to the documentation, only possible values for ORPort are a fixed
number or 0 (disable) or auto (current behavior). Choose 9001 as this is the
commonly used port number for ORPort. The recommended port number of 443 is not
possible in FreedomBox due it is use for other purposes.

Closes: #1495.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-18 07:13:19 -05:00
Sunil Mohan Adapa
595997ff7c
tor: Styling changes due to yapf
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-18 07:13:15 -05:00
Doma Gergő
c530c03242
Translated using Weblate (Hungarian)
Currently translated at 97.9% (1002 of 1024 strings)
2019-02-18 09:18:54 +01:00
advocatux
fb7ac32a25
Translated using Weblate (Spanish)
Currently translated at 100.0% (1024 of 1024 strings)
2019-02-16 18:19:17 +01:00
Allan Nordhøy
e0b9feaa0e
Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (1024 of 1024 strings)
2019-02-16 18:19:16 +01:00
Doma Gergő
66e082177f
Translated using Weblate (Hungarian)
Currently translated at 97.3% (996 of 1024 strings)
2019-02-16 18:19:15 +01:00
danielwine
256ef966c6
Translated using Weblate (Hungarian)
Currently translated at 97.3% (996 of 1024 strings)
2019-02-16 18:19:11 +01:00
Pavel Borecki
2ea5f83f31
Translated using Weblate (Czech)
Currently translated at 100.0% (1024 of 1024 strings)
2019-02-16 18:19:09 +01:00
Joseph Nuthalapati
1dc1278a88
config: Consolidate get_domainname() implementation into config
- Use the function get_domainname() in config module everywhere
- Delete duplicate implementations in ejabberd and jsxc

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-14 16:39:30 -08:00
Joseph Nuthalapati
753881b80f
utils: Simplify YAMLFile by removing the post_exit argument
Whatever function is passed in post_exit can simply be called by the caller
itself as the next statement.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-14 16:39:05 -08:00
Joseph Nuthalapati
938dadcae0
tor: Fix deprecation warning W605 for '\' character in regex
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-14 15:33:34 -08:00
Joseph Nuthalapati
bc6ce14cdb
docs: Fix deprecation warnings in post-processor
Fixes #1502

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-14 15:33:07 -08:00
James Valleroy
7295a6d9cc
Release v19.1 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v19.1
2019-02-14 06:01:53 -05:00
James Valleroy
28f289b74b
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-14 06:01:08 -05:00
James Valleroy
114bc1f053
locale: Update translation strings
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-14 05:48:31 -05:00
Sunil Mohan Adapa
e448ab6380
matrixsynapse: Better checking for valid certificate
If a valid certificate is available but not yet setup, the earlier code assumes
there is a valid certificate.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-13 19:34:04 -08:00
Sunil Mohan Adapa
b169739867
matrixsnapse: Setup certificate after domain selection
Immediately after the installation, a self-signed certificate is used because
domain name is not available. However, after domain name becomes available,
setup a Let's Encrypt certificate.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-13 19:00:33 -08:00
Sunil Mohan Adapa
3b257c7a58
matrixsynapse: Fix potential exposure of private key
Setting permissions after copying the file will lead to momentary exposure of
the private key to other users on the system. Use umask instead.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-13 17:52:49 -08:00
Sunil Mohan Adapa
b53f675f55
matrixsynapse: Don't check for current domain in renew hook
Don't match the hook's domain against domain set in configuration. We already
check if the domain matches the Matrix Synapse configured domain.

- Fix un-checking letsencrypt option for matrixsynapse. Keep the old certificate
  but don't throw error. This means future certificates are not renewed.

- Use utility get_configured_domain_name()

- Style function names without uppercase.

- Style multi-line docstrings correctly.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-13 17:14:08 -08:00
Sunil Mohan Adapa
ee38f32f2b
letencrypt: Fix issue with disabling matrixsynapse checkbox
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-13 15:40:47 -08:00
Sunil Mohan Adapa
781ac3d5dd
matrixsynapse: Fix issues with showing certificate warning
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-13 15:40:05 -08:00
Sunil Mohan Adapa
3961ccf415
matrixsynapse: Remove hard-coded URL
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-13 15:38:45 -08:00
Joseph Nuthalapati
a918f9a885
matrix-synapse: Use Let's Encrypt certificates
Matrix requires valid certificates for federation with other servers from
version 1.0 onward. If the FreedomBox server already has LE cert and private
key, copy them into /etc/matrix-synapse

- Add certificate renewal hooks for Matrix Synapse. Reusing the certificate
  renewal mechanism built for ejabberd with matrix-synapse as well. One notable
  difference is that Matrix Synapse doesn't support switching the domain name or
  dropping the Let's Encrypt certificate.

- Use self-signed certificate if there is no LE certificate. Matrix Synapse
  server startup fails if the files homeserver.tls.crt and homeserver.tls.key
  are missing.

- Copy Apache's snakeoil certificates to /etc/matrix-synapse when LE
  certificates are not available. Prefer LE certificates if available.

- Display warning if no valid LE certificate is found.

Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
2019-02-13 11:29:36 -08:00
Sunil Mohan Adapa
a821517e91
radicale: Simplify upgrading to newer packages
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-13 06:42:55 -05:00
Sunil Mohan Adapa
920d083301
setup: Add option to handle configuration prompts during install
This is optional and does not affect normal installations. However, when
performing configuration migration in FreedomBox (due to unattended-upgrades
refusing it), it is useful as a part of strategy to read configuration, force
install new configuration files and apply configuration again. This option can
be used on such cases.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-13 06:42:50 -05:00
advocatux
0f5a52f8c4
Translated using Weblate (Spanish)
Currently translated at 100.0% (1018 of 1018 strings)
2019-02-12 13:09:51 +01:00
Petter Reinholdtsen
350fd493d4
Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (1018 of 1018 strings)
2019-02-12 13:09:50 +01:00
Allan Nordhøy
4afd103d74
Translated using Weblate (Norwegian Bokmål)
Currently translated at 100.0% (1018 of 1018 strings)
2019-02-12 13:09:49 +01:00
Pavel Borecki
3ae36c012b
Translated using Weblate (Czech)
Currently translated at 100.0% (1018 of 1018 strings)
2019-02-12 13:09:49 +01:00
James Valleroy
6536e86b15
radicale: Fix server URLs in client info
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-11 13:56:08 -08:00
James Valleroy
5aa957c6ba
radicale: Remove obsolete diagnostics
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-11 13:56:02 -08:00
James Valleroy
03b935333f
radicale: Bump version to 2
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-11 13:55:56 -08:00
James Valleroy
11e86cf8f8
radicale: Log errors during upgrade
Avoid raising errors which could cause endless loop of setup process
failing.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2019-02-11 13:55:25 -08:00
James Valleroy
97f603e998
Release v19.0 to unstable
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
v19.0
2019-02-09 20:38:17 -05:00
James Valleroy
ffae80b5cf
doc: Fetch latest manual
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-09 20:34:56 -05:00
James Valleroy
175aa3f9b7
locale: Update strings for translation
Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
2019-02-09 20:14:51 -05:00