Commit Graph
2272 Commits
Author SHA1 Message Date
Sunil Mohan Adapa 7e4af695ce letsencrypt: I18n and minor fixes
- Fix indentation from a recent change.

- Internationalize 'no domains configured' message.

- Expand the message as per orignal pull request.
2016-11-14 21:38:27 -05:00
mridulnagpal 14b65ae456 letsencrypt: Improve display when no domains are configured
Show better message, and hide diagnostics button.
2016-11-07 19:53:46 -05:00
James Valleroy cf0e8219af Use new setup state in template tag 2016-11-03 22:32:17 -04:00
Hemanth Kumar Veeranki 6011a7adfa Made Suggested Changes 2016-11-03 22:06:08 -04:00
Hemanth Kumar Veeranki 0290f68ae6 Removed redirection for login and help urls
Changed the redirection in state0 template
2016-11-03 22:06:05 -04:00
Hemanth Kumar Veeranki 0332d4489e Added code for modules to register for first_boot #529 2016-11-03 22:06:00 -04:00
James Valleroy 3fa243ef5b Cleanup hostname change fix and clarify log message 2016-11-02 22:08:33 -04:00
mridulnagpal 063190a00c Set current domainname again after hostname change 2016-11-02 21:49:35 -04:00
James Valleroy b7293e8d98 xmpp: Adjust message for domain not set 2016-10-28 12:55:24 -04:00
mridulnagpal fd4959da0c xmpp-domain-set 2016-10-28 12:16:13 -04:00
Sunil Mohan Adapa 5c75eb9649 dynamicdns: Allow reading status as non-root
Recently dynamic DNS module was fixed to use root ownership and limited
permissions for configuration and status files to avoid other users
reading dynmaic DNS account details.  This caused a regression when
Plinth is being run as non-root user.  This patch runs the commands to
read the current configuration as root user.
2016-10-17 11:49:45 -04:00
Sunil Mohan Adapa 4db5a35ce0 repro: Open up RTP ports
- RTP ports used for voice and video communication can span a wide range
  of ports.  Some servers seem to restrict the range.  However, repro
  does not seem to do that.  So, open up the full range.
2016-10-01 08:19:57 -04:00
Sunil Mohan Adapa 7a80e04ddd repro: Use firewalld provided SIP services
Now that firewalld has service definitions for SIP and SIP over
TLS/DTLS use them instead of custom service definitions.
2016-10-01 08:19:51 -04:00
Sunil Mohan Adapa dce51fd6d7 networks: Support configuring IPv6 networks
- Very similar to configuration of IPv4 networks.

- Supports 'auto', 'dhcp', 'manual' and 'ignored' modes as supported by
  network manager.  'shared' mode is not yet implemented by network
  manager.
2016-10-01 07:09:03 -04:00
James Valleroy 758234de7b ikiwiki: Add help text about name restriction 2016-09-21 12:08:29 -04:00
Hemanth Kumar Veeranki 68046b638b ikiwiki: Allow only alphanumerics in wiki/blog name 2016-09-21 12:02:23 -04:00
James Valleroy 51386bfe37 xmpp: Bump module version number
This will allow existing installs to be updated for jsxc.
2016-09-19 19:51:29 -04:00
Sunil Mohan Adapa 305cc3218d xmpp: Replace jwchat with jsxc
- Update action to not configure jwchat anymore.

- Update action to not disable jwchat apache configuration.  Since the
  package is no longer installed, this could cause failures.

- Update action to no refer to jwchat in comments.

- Update jwchat-plinth Apache configuration to not include jwchat
  anymore.  Keep this file name for now instead of renaming it to
  jsxc-plinth as this would introduce additional complexity with little
  benefit.

- Install package libjs-jsxc instead of jwchat during xmpp setup.

- Create jsxc front page shortcut instead of for jwchat.

- Perform diagnostics on /http-bind/ URL needed for jwchat instead of
  /jwchat.

- Update links that launch XMPP web client.
2016-09-19 19:51:26 -04:00
Sunil Mohan Adapa e57aa2ae85 xmpp: Add a view to serve JSXC embed page
This is a publicly available view since people should be able to login
even without access to Plinth interface.  Also avoid double login.
There should be no security risk in doing this.
2016-09-19 19:51:20 -04:00
Sunil Mohan Adapa 08068e60fc xmpp: Introduce simple page to embed JSXC
Create a simple page based on example provided by Javascript XMPP Client
to embed it.
2016-09-19 19:51:13 -04:00
Sunil Mohan Adapa 26a724b773 networks: Add batctl as dependency
This will be removed from freedombox-setup depedency list.
2016-09-17 14:03:58 -04:00
Sunil Mohan Adapa 8f179e0d9f Remove trialing whitespaces and untabify 2016-09-11 13:15:02 -04:00
Sunil Mohan Adapa ff0d117a89 Readjust the responsive widths of various tables
Most tables now occupy the full width of the container row.  Some of
them are otherwise squished.  Also make sure the new fixed container
layout has not reduced the originally intended width of a table.
2016-09-11 13:15:00 -04:00
Sunil Mohan Adapa 2c204429c6 Remove width management for forms
Now all forms will uniformly occupy the full width of the available
row.  Bootstrap originally designed forms this way.  However, we were
setting restricted widths on forms as they were too wide.  With the new
fixed container layout this is no longer necessary.
2016-09-11 13:14:57 -04:00
Sunil Mohan Adapa 57bc8f1db6 letsencrypt: Depend on the new certbot package
Instead of the transitional package 'letsencrypt'.

I believe, there is no need to rename the entire module to certbo since
letsencrypt is stil a more apt name for the module.  Let's Encrypt is a
strong brand that people know.  The service is still called Let's
Encrypt.  Only the automation tool has been renamed to certbot to avoid
confusion of the service name.
2016-09-04 15:47:46 -04:00
Sunil Mohan Adapa 72c6aad514 minetest: Fix showing status block and diagnostics 2016-09-03 15:15:59 -04:00
Sunil Mohan Adapa 3454abdc43 monkeysphere: Allow non-root cancel of publishing
Implement killing the publish process from within the action.  Don't let
the killing be too generic to avoid potential security issues.  Kill
process only if it appears as expected.
2016-09-02 12:00:08 -04:00
Sunil Mohan Adapa f9bea39483 monkeysphere: Handle unavailable imported domains
After a domain has been imported into a key and later the domain is
removed, handle the case properly.

- Show the Add Domains button only if there are domains that can be
  imported.

- Show domains that have been imported into a key but not available in
  the system specially.

- Sort list of domains shown.
2016-09-02 12:00:05 -04:00
Sunil Mohan Adapa cd96af6854 monkeysphere: Minor indentation 2016-09-02 12:00:01 -04:00
Sunil Mohan Adapa f68e8612f1 monkeysphere: Allow SHA256 hashes in URLs 2016-09-02 11:59:52 -04:00
Sunil Mohan Adapa 34a557c292 monkeysphere: Sort displayed items
So that reloading a page does not lead to complete order change.  Use
SSH fingerprint because that is available for all the keys.
2016-09-02 11:59:46 -04:00
Sunil Mohan Adapa 3fe6ea6014 frontpage: Cleanup urls for showing description
In a module, when URL is not avialable for a shortcut, send None instead
of an implementation specific detail on how to show description.  This
allows use to change the implementation of how description is shown
without changes to modules.
2016-09-02 20:06:53 +05:30
Sunil Mohan Adapa 3763e28d15 ikiwiki: Make sure shortcuts show up after setup
If the wikis and blogs are already setup and ikiwiki is uninstalled for
some reason, then setting it up should show the existing wikis and
blogs.
2016-09-02 20:06:28 +05:30
James Valleroy 0fc1eaa1cd frontpage: Separate shortcuts for XMPP server and client 2016-09-02 20:05:32 +05:30
James Valleroy 49eadd971a Add information about enabled services to front page 2016-09-02 20:03:39 +05:30
James Valleroy fa0bc7471f frontpage: Add shortcut for each ikiwiki wiki and blog 2016-09-02 20:03:32 +05:30
James Valleroy 3eb7dd914a Add basic front page with shortcuts to web apps 2016-09-02 20:03:24 +05:30
Sunil Mohan Adapa 56ab6ddd3e datetime: Fix spelling (Dietmar) 2016-08-26 21:52:07 -04:00
Sunil Mohan Adapa 7025cf099e letsencrypt: Fix spelling (Dietmar) 2016-08-26 21:52:01 -04:00
Sunil Mohan Adapa 037944e5fc help: Minor updates and fixes to status log
- Refactor reading status log file.

- Fix hardcoded URL path into 500.html.

- Rename 'status logs' to 'status log' for consistency.

- Decorate the personal information warning.  Avoid <b>.

- Add heading to status log page.

- Indentation and grammer fixes.
2016-08-26 21:51:58 -04:00
Sunil Mohan Adapa 31c6f866e2 Use loading icon for other busy operations 2016-08-26 21:51:51 -04:00
Sunil Mohan Adapa 164948c75e tor: Refactor showing loader icon
- So that it can be used for other applications also.

- Also remove second status icon in green and use the status loading in
  it's place.  This is more consistent placement of status icon.

- Also reduce the size of the icon as it is not indication for page
  loading (page loading icons are large because they substitute page
  content until it is loaded).  This makes it consistent with other
  status icon.
2016-08-26 21:51:44 -04:00
Sunil Mohan Adapa 5f94d6489f users: Update the SSH set key error message
In a following pull request, we are expected to solve the cache timing
issue.  So, show a generic error message instead of one that suggests a
timing problem.
2016-08-23 21:37:51 +05:30
James Valleroy d2950d9c5f users: Display error message if unable to set SSH keys 2016-08-23 21:37:41 +05:30
Sunil Mohan Adapa 130b5273e4 letsencrypt: Replace a Unicode char with ASCII
Although there is nothing wrong with the generated POT file and the
encoding is properly set to UTF-8, Weblate failed with following error:

We have not been able to update the source file for the resource
django.pot of the project FreedomBox UI.

The URL we used to update the source file from was
https://raw.githubusercontent.com/freedombox/Plinth/master/plinth/locale/django.pot.

The exact error we encountered was:

'ascii' codec can't encode character u'\u2019' in position 31271:
ordinal not in range(128)
2016-08-20 09:40:30 +05:30
Sunil Mohan Adapa 7b68dd55f2 upgrades: Run status operations as non-root
Current check whether the package manager is busy and getting the
unattended upgrades log requires root.  This will not allow Plinth to
run as non-root.  Fix this by moving the operations to actions script.
2016-08-16 18:51:37 -04:00
Sunil Mohan Adapa afdea208ec transmission: Read configuration as super user
Due to permission restrictions on the configuration file (due to stored
password), it is not possible to read it as plinth user.  Read it using
sudo instead.
2016-08-16 18:39:38 -04:00
Sunil Mohan Adapa 522db2ce4c dynamicdns: Allow Plinth to run as non-root
When invoking actions, invoke them using sudo so that Plinth itself can
run as non-root.  Most operations require superuser previlage.  Those
that don't require superuser should not be part of the action script and
can be moved to Plinth main.
2016-08-16 18:20:32 -04:00
Sunil Mohan Adapa b7cbc56f8a users: Fix checking restricted usernames
When editing an existing user, error is being thrown due to restricted
usernames check.  This is due to the username matching existing
username.

Also:

- Raise the validation error on the field instead of the entire form.

- Send error code along with validation error message.

- End the validation error message with a full stop for consistency.
2016-08-16 12:31:52 -04:00
Sunil Mohan Adapa fff0a6c562 users: Fix editing users without SSH keys
When SSH keys are not available for a user, the current user edit form
errors out.  Fix this by ignoring ssh key load errors.
2016-08-12 16:10:32 -04:00