Commit Graph
3541 Commits
Author SHA1 Message Date
James Valleroy 3c3d280792 dynamicdns: code style fixes 2017-07-30 12:07:13 -04:00
Hemanth Kumar Veeranki 1e19508b95 Add/remove domain name in names module when domain name is configured in dynamicdns module
Signed-off-by: Hemanth Kumar Veeranki <hemanthveeranki@gmail.com>
2017-07-30 12:01:57 -04:00
Johannes Keyser d8849114ba letsencrypt: delete button also disables certificate renewal mngmt 2017-07-30 09:18:00 -04:00
James Valleroy b8255ca46b diaspora: Avoid incorrect 'setting unchanged' message 2017-07-29 15:31:41 -04:00
Joseph Nuthalpati 4abb7cd885 Diaspora: Checkbox to enable or disable user registrations 2017-07-29 12:40:44 -04:00
James Valleroy 3e38a3e3f1 diaspora: fix test file header 2017-07-29 10:50:06 -04:00
Joseph Nuthalpati f3860b197a Diaspora: Generate apache configuration at setup
- Deleted static configuration file
- Generating configuration with the domain name set.
2017-07-29 10:45:57 -04:00
James Valleroy 276dac2df2 security: minor style fixes 2017-07-29 09:49:14 -04:00
nsaikiran a8a5da996e [#759] Add fail2ban to Plinth UI
Run sudo-required action via actions.superuser_run

Actions related to services those require `sudo` permissions need to
be executed via actions.superuser_run.

NOTE:
If plinth service is started via `sudo ./run --debug` (in dev mode)
all actions will be executed silently. But plinth in user machines
won't be executed with sudo permissions.
2017-07-29 09:42:31 -04:00
Johannes Keyser 4bd6929d69 power: warn if a package manager is running before shutdown/restart
- red colors for warning about running package manager

- red buttons to indicate danger if installation/upgrade runs
2017-07-22 10:07:33 -04:00
James Valleroy 3ea5868ec1 pylint and spelling fixes 2017-07-19 21:47:07 -04:00
Johannes Keyser 1069f84154 letsencrypt: Add option to let Plinth "manage" certbot's renewal hooks
- add action commands for managing and running hooks

- adding template, view and url for managing and running hooks

- disable Plinth hook management on domain change
2017-07-19 21:47:00 -04:00
Joseph Nuthalpati ff1a2537cd diaspora: Fixed a left-over refactoring
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-07-14 15:51:39 +05:30
bharatak ee43db0e1b letsencrypt: Make Let's Encrypt an essential module
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-07-14 12:55:01 +05:30
Johannes Keyser e8f0be1010 i18n: don't use backslash-newline for wrapping long lines in _(), fixes #872 2017-07-10 21:56:46 -04:00
Johannes Keyser 1a39ec0267 letsencrypt: add option to delete certificates 2017-07-06 22:30:10 -04:00
Johannes Keyser 57e96b298c letsencrypt: show more info on cert validity status 2017-07-06 22:30:01 -04:00
Johannes Keyser 280431a7bd power: erase entry from config menu, fixes issue #834 2017-07-01 10:20:47 -04:00
Joseph Nuthalpati 5403d00e85 SSO: Generate keys during plinth startup
- Removed key generation for mod_auth_pubtkt from first boot.
- Running setup every time plinth starts so that new essential modules
can be setup properly.

Partially fixes #875
2017-06-24 14:59:03 -04:00
Joseph Nuthalpati 5ad180fcc9 Add Tahoe-LAFS module
- Created basic plinth app which starts an introducer and a storage
  node on the FreedomBox.
- Prompt user to set a domain name before creating Tahoe-LAFS nodes.
- Support adding and removing of introducers to the storage node.
- Serve Tahoe-LAFS from a different port.
- Start all nodes and introducers at system startup.
- Add utility class YAMLFile with test cases.
2017-06-10 09:38:57 -04:00
Johannes Keyser 62aa3ce26a disks: delete existing test file, if necessary 2017-06-07 22:24:15 -04:00
Johannes Keyser 8ae6fbbd4c help: only show help pages if user is logged in 2017-06-07 22:22:08 -04:00
Johannes Keyser 249403a6dd diagnostics: Disable button if app/service is not running
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-06-06 08:55:24 +05:30
Joseph Nuthalpati 995365f3df Add SSO using auth_pubtkt for 3 web apps
- Install mod_auth_pubtkt and generate public/private key-pair.

- Redirect user to login page if no cookie is presented.

- Add check for authenticated user for login page.

- Temporarily switched to DSA because of a bug in mod_auth_pubtkt
  which causes it to accept only DSA and not RSA. Also had to use SHA1
  instead of SHA256.

- Enabled SSO for Syncthing, Repro and TT-RSS.

- Using tokens to authorize by user groups.

- Generate keys during first boot.
2017-06-03 10:29:42 -04:00
Johannes Keyser 5ee8e9397d help: Add Debian release to about page. 2017-05-29 20:00:52 -04:00
Johannes Keyser cc5e49433a disks: restrict precision of reported available space on root partition 2017-05-26 12:07:12 -04:00
kvaghel1 6830d26508 Adds line break in frontpage shortcut label 2017-05-24 06:42:07 -04:00
James Valleroy 4893ddc423 ejabberd: Remove unnecessary imports 2017-05-19 21:24:38 -04:00
Johannes Keyser ed0ab1ab64 ejabberd: add option to enable/disable Message Archive Management 2017-05-19 20:42:52 -04:00
James Valleroy 89ceb98273 first_boot: Remove Networks button, add link to text 2017-05-16 00:23:14 -04:00
Johannes Keyser 62c46b4186 first_boot: erase network graph and warning on WiFi passwords 2017-05-16 00:23:11 -04:00
Johannes Keyser b6ce07d962 first_boot: no exclamation mark in button 2017-05-16 00:23:09 -04:00
Johannes Keyser ee0679fc5a first_boot: less casual language 2017-05-16 00:23:06 -04:00
Johannes Keyser 2ad579dbb2 first_boot: de-bloat first welcome screen, #830 2017-05-16 00:23:00 -04:00
Joseph Nuthalpati f395450266 Bugfix for #841
Removed Diaspora's dependency on the apps module
2017-05-11 19:29:44 -04:00
Johannes Keyser 2b0cf1b987 disks: add missing import json 2017-05-08 20:59:51 -04:00
James Valleroy 2f13946517 diaspora: Update menu use to match other modules
- Remove extra global line to avoid warning.

- Fix comment and indentation.
2017-05-06 07:44:26 -04:00
Joseph Nuthalpati 3a6dc03ee9 Diaspora: Checking whether domain name is setup before certain actions 2017-05-06 07:25:47 -04:00
Joseph Nuthalpati 5ffcf42278 diaspora: Templates to setup domain name 2017-05-06 07:25:42 -04:00
Joseph Nuthalpati 742fe48a29 diaspora: Disabled SSL
Created a custom command in Plinth to disable ssl for the diaspora pod
on the freedombox.
2017-05-06 07:25:37 -04:00
Joseph Nuthalpati d269a0a645 diaspora: Completed debconf configuration for Diaspora. 2017-05-06 07:25:34 -04:00
Joseph Nuthalpati 01e97e7369 diaspora: Initial setup
Completed initial setup of diaspora on Plinth. Default configuration pending.
2017-05-06 07:25:27 -04:00
Sunil Mohan Adapa ee7cc98fee apps, system: Remove modules and merge into main
- Remove apps and system modules and merge their views into main views.

- Move main_menu from cfg into menu.py.

- Remove dependencies of other modules on apps and system modules.

- Update tests.

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-05-05 22:31:45 -04:00
Sunil Mohan Adapa 520347cc1b datetime: Show timezone properly when it not in expected list
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-05-05 20:49:43 -04:00
pycat 6f14f20ef1 Fix typos #551 2017-05-05 20:39:22 -04:00
pycat 307f4876ff Split RESESRVED_USERNAMES list #551
- Have each module declare its own reserved_usernames list
2017-05-05 20:39:18 -04:00
pycat a017a9bf4a Split rerserved usernames list - possible solution demostration #551
This commit contains an implementation only for module repro

- Loop through all the loaded modules
- Get each module reserved_username attribute
- Check the username against the reserved_username
2017-05-05 20:39:08 -04:00
Johannes Keyser 89146f64ce disks: Use information from lsblk for more accuracy
Closes #795.  On a Raspberry Pi, the root partition was show as being
mounted from /dev/root.  Use information from lsblk to more acurately
indentify the device as /dev/mmcblk0p2.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-05-01 17:01:40 +05:30
Johannes Keyser 68a0ed48fa datetime: Use timedatectl to get list of time zones
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-30 09:23:12 +05:30
morrme ad3420823d owncloud: Remove module (Closes: #818)
It is believed that ownCloud is unlikely to return to Debian in near future.
Removing module to ease maintenance.

Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
2017-04-25 18:06:56 +05:30